Casting FirebaseListObservable results to objects
I'm using angularfire-beta6. Let's say I have a myHeroes:FirebaseListObservable<Hero[]> and use it with an async -pipe in my template I cannot access functions from the Hero class. <ul> <li *ngFor="let hero of myHeroes"> {{hero.someClassFunction()}} </li> </ul> This results in an error: self.context.$implicit.someClassFunction() as hero is not cast to the Hero class. How would I do that? You can get an object or a list from the database using list or object function on AngularFireDatabase . You have FirebaseListObserver with an array of objects of predefined (not your custom) class. Your will