Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // template
- <li class="text" *ngFor="let item of items | async">
- {{item.title}} -- {{ item.key}}
- </li>
- // typescript
- this.items = this.itemsCollection.snapshotChanges()
- .map(actions => {
- return actions.map(action => ({ $key: action.payload.doc.id, ...action.payload.doc.data() }));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement