I want to display the key value via the screen. (ionic firebase)


#1
 this.itemRef = fdb.object('/myItems');

    this.itemRef.snapshotChanges().subscribe(action => {
      this.gg = action.payload.val();
      console.log(action.type);
      console.log(action.key)
      console.log(action.payload.val());
      console.log(JSON.stringify(this.gg) );
    });
      console.log(action.payload.val());
{-LFlLrEoPLrD5hYpeoiC: "666", -LFlRX5k4gGm_MlO1cdl: "555", -LFmYwwhOnWU-7uULpks: "55"}
console.log(JSON.stringify(this.gg) );
{"-LFlLrEoPLrD5hYpeoiC":"666","-LFlRX5k4gGm_MlO1cdl":"555","-LFmYwwhOnWU-7uULpks":"55"}

#2

angularfire2 firebase 5.0
image