我已经使用RadListView如下,但我已经非常奇怪的错误:NativeScript RadListView rootLocator不是一个函数
<RadListView [items]="dataItems">
<ng-template tkListItemTemplate let-item="item">
<StackLayout orientation="vertical">
<Label class="nameLabel" [text]="item.title"></Label>
</StackLayout>
</ng-template>
</RadListView>
就像,因为它是在这里https://github.com/telerik/nativescript-ui-samples-angular/tree/release/sdkAngular/app/listview/getting-started。
但问题是,我得到以下异常:
我升级了它。问题仍然存在... –
确保在执行tns运行之前删除node_modules和平台文件夹。如果以前的版本是从npm下载的,那么即使更新了package.json,也可能会使用旧版本运行。请注意,当前版本的nativescript-telerik-ui已经为'Angular:〜4.1.0'和'nativescript-angular:3.1.3'开发。支持所有最新依赖项的版本将于9月初开始发布。 –