I\'m following this tutorial about how to connect angular with firebase database. But in minute 17:30 I\'m getting this error:
Property \'subscribe\' does not ex
Starting in AngularFire 5.0 you'll want to use one of snapshotChanges()
, valueChanges
, stateChanges()
, or auditTrail()
. See the 5.0 migration guide.
Get started with the most basic, valueChanges()
:
export class AppComponent {
countries: Observable;
constructor(db: AngularFireDatabase ) {
this.countries = db.list('/Country/countries').valueChanges();
}
}