Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
nativescript ListView输出为[ObjectObject]_Listview_Angular_Nativescript_Angular2 Nativescript - Fatal编程技术网

nativescript ListView输出为[ObjectObject]

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.in my ins.html页面中包含

<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);
}