📌  相关文章
📜  通过 id 从 firebase angular 检索列表 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:15.357000             🧑  作者: Mango

代码示例1
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() }));
});