【发布时间】:2018-11-17 17:36:53
【问题描述】:
我不确定如何处理为 this.actions 返回的查询对象
this.actionCollection = this.db.collection('actions');
this.actions = this.actionCollection.ref.where('filterId', '==', this.filterId)
我应该如何处理this.actions?我尝试将其设置为我的视图,但出现此错误Error: InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe'
<h4>Actions List</h4>
<ul>
<li *ngFor="let action of actions | async">
{{action | json}}
</li>
</ul>
【问题讨论】:
标签: angular firebase google-cloud-firestore