我有一个firebase实时数据库,它的结构是这样的:
图像和服务节点是固定的,不会更改,但在图像中,用户可以添加更多节点(随机名称),每个节点中都有多个json对象,如您在图像中所见。我使用此代码迭代,但没有显示任何内容(我只想迭代图像节点"newyear“的第一个节点,并显示其中的所有json对象):
<div *ngFor="let w of wholeAlbum[0] | async
我想使用ngFor将Firebase查询的结果绑定到我的模板中,这在下面很容易实现。<div *ngFor="let thread of threads | async"> <div *ngFor="let participant ofNgFor only supports binding to Iterables such as Arrays.在我的数据库结构中,participants是