Answers for "AngularFireDatabase is not a observable??"

0

AngularFireDatabase is not a observable??

// change to valueChanges()
constructor(afDb: AngularFireDatabase) {
  afDb.list('items').subscribe(console.log);
}
//to
constructor(afDb: AngularFireDatabase) {
  afDb.list<Item>('items').valueChanges().subscribe(console.log);
}
Posted by: Guest on February-03-2021

Code answers related to "AngularFireDatabase is not a observable??"

Code answers related to "Javascript"

Browse Popular Code Answers by Language