📌  相关文章
📜  AngularFireDatabase nãoémais um observable?? - Javascript代码示例

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

代码示例1
// change to valueChanges()
constructor(afDb: AngularFireDatabase) {
  afDb.list('items').subscribe(console.log);
}
//to
constructor(afDb: AngularFireDatabase) {
  afDb.list('items').valueChanges().subscribe(console.log);
}