📅  最后修改于: 2022-03-11 15:03:49.383000             🧑  作者: Mango
// change to valueChanges()
constructor(afDb: AngularFireDatabase) {
afDb.list('items').subscribe(console.log);
}
//to
constructor(afDb: AngularFireDatabase) {
afDb.list- ('items').valueChanges().subscribe(console.log);
}