i tried to retrieve data from firebase with angular2 today without success, i can console log data and see object, but for reusing them i have undefined in the console, maybe an issue with synchronous and asynchronous data, what kind of solution i have to retrieve these data with angular2?
thank you
read(){
this.publicationUrl = "https://FBURL/publication";
this.PublicationRef = new Firebase(this.publicationUrl);
this.PublicationRef.on("child_added", function(snapshot){
this.publication = snapshot.val();
console.log(this.publication)
})
}