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