skip to Main Content

How to get key from Observable? – SEO

I am trying to read data from firebase using angular 2 and typescript my code export class DashboardComponent implements OnInit { itemsRef: AngularFireList<any>; items: Observable<any[]>; constructor( afDatabase: AngularFireDatabase) { this.itemsRef = afDatabase.list('/user_orders/louro'); this.items = this.itemsRef.valueChanges(); this.items.subscribe(val_2 => { alert(val_2.keys()); val_2.forEach(function…

VIEW QUESTION
Back To Top
Search