Answers for "retrieve list by id from firebase angular"

0

retrieve list by id from firebase angular

this.itemsRef = db.list('messages');
// Use snapshotChanges().map() to store the key
this.items = this.itemsRef.snapshotChanges().map(changes => {
  return changes.map(c => ({ key: c.payload.key, ...c.payload.val() }));
});
Posted by: Guest on February-04-2021

Code answers related to "retrieve list by id from firebase angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language