retrieve list by id from firebase angular

Solutions on MaxInterview for retrieve list by id from firebase angular by the best coders in the world

showing results for - "retrieve list by id from firebase angular"
Eduardo
09 Jan 2017
1this.itemsRef = db.list('messages');
2// Use snapshotChanges().map() to store the key
3this.items = this.itemsRef.snapshotChanges().map(changes => {
4  return changes.map(c => ({ key: c.payload.key, ...c.payload.val() }));
5});
6