how to reach value

0

I need to get the value that says bencina_mas_barata .

this.bencineras = database.object('/Bencinas_two/'+this.ids+'/'+1+'/');
this.bencineras.snapshotChanges().subscribe(action => {

  console.log(action.type);
  console.log(action.key)
  console.log(action.payload.val())
  if(action.payload.val() == null) {
    console.log('no hay datos');
  } else {
    this.DATA_BENCINERAS = action.payload.val();
    console.log(action.key)
    console.log(this.DATA_BENCINERAS.key)
    console.log('aqui')
    console.log(typeof(this.DATA_BENCINERAS));
  }
});
    
asked by Dagg 04.10.2018 в 19:42
source

0 answers