nativescript ListView输出为[ObjectObject]
在我的应用程序中,我使用本机脚本ListView.in my ins.html页面中包含nativescript ListView输出为[ObjectObject],listview,angular,nativescript,angular2-nativescript,Listview,Angular,Nativescript,Angular2 Nativescript,在我的应用程序中,我使用本机脚本ListView.in my ins.html页面中包含 <ListView [items]="views$ | async"> <template let-view="item"> <Label [text]="view.name"></Label> </template> </ListView> 当我编译这个时,我得到的结果是: [ObjectObject] [Objec
<ListView [items]="views$ | async">
<template let-view="item">
<Label [text]="view.name"></Label>
</template>
</ListView>
当我编译这个时,我得到的结果是:
[ObjectObject]
[ObjectObject]
组件技术
constructor(){
this.views$ = store.let(getViews);
}
此视图正在使用ngRx存储更新。
我正在使用nativeScript 2.5.0
我如何解决这个问题?任何帮助都会非常有用。我是本地脚本的新手。你能提供你的js代码吗?你如何获得数组(你真的需要异步管道吗)?是的,我需要异步管道。我包括我的js代码。这意味着你在视图中得到的view.name不是字符串,如果我给出了这么多,请尝试实际调试它,它正在工作,即,相同的[ObjectObject]。你可以从这里获得list liew的参考。
constructor(){
this.views$ = store.let(getViews);
}