I\'m using ionic 3 with firebase.
Until now I use angularfire 4.0 and the following code gave me an observable for the data from firebase:
obsToData: F
you need to use valueChanges() to get the Observable from the AngularFireDatabase Object reference.
obsRef: AngularFireObject<any>;
obsToData: Observable<any>;
constructor(public nav: NavController, public shared: SharedProvider,
public DB: AngularFireDatabase) {
this.obsRef = DB.object('/myData');//reference
this.obsToData = this.obsRef.valueChanges();//Observable
}
EDIT to get data and save it,subscribe like any observable
this.obsToData.subscribe(data=>{
console.log(data);
},error=>{
console.log(error);
})