【问题标题】:Error In nativescript-pager after update nativescript-cli with 6.0?用 6.0 更新 nativescript-cli 后在 nativescript-pager 中出错?
【发布时间】:2019-07-25 13:55:10
【问题描述】:

错误是:-

错误类型错误:无法加载视图:Pager.TypeError:无法读取未定义的属性“PagerAdapter”

ERROR TypeError: TNSViewPager 不是构造函数

示例代码:-

 <Pager row="0" [items]="itemList" [selectedIndex]="selectedIndexValue" cache="false" disableAnimation="true" #pager (selectedIndexChange)="onIndexChanged($event)">
                <ng-template let-i="index" let-itemS="item">
                    <GridLayout rows="*">
                        <Image class="view-animation" row="0" [src]="itemS.path1">
                        </Image>
                        <Image class="view-animation" row="0" [src]="itemS.path2"></Image>
                        <Image class="view-animation" row="0" [src]="itemS.path3"></Image>
                    </GridLayout>
                </ng-template>
            </Pager>

【问题讨论】:

  • 我的应用程序中有类似的问题。

标签: angular nativescript-angular


【解决方案1】:

我终于在 nativescript cli 6.0 中找到了这个问题的解决方案。

  1. Android Q
  2. 安装 nativescript-pager 最新插件。

此处提供示例:- https://github.com/triniwiz/nativescript-pager

【讨论】:

    猜你喜欢
    • 2019-04-07
    • 1970-01-01
    • 2019-01-05
    • 2018-10-26
    • 1970-01-01
    • 2016-10-27
    • 2019-12-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多