AnObservableArray
与 一起正常工作<ListView [items]="feedsComments"
,NativeScript中feedsComments
的 an在哪里。ObservableArray
但是当我用ListView
以下内容替换时:
<StackLayout *ngFor="let item of feedsComments">
</StackLayout>
它抛出以下错误:
ERROR Error: Cannot find a differ supporting object '[object Object],[object Object]' of type 'object'.
NgFor only supports binding to Iterables such as Arrays.