How to Render Single Observerble Data in HTML


#1

I use Observerble to get single object data to from the firebase. How do i render this data on html.i use this {{(postObservable2|async)?.subject}} but Nothing Renderd.

 this.postObservable = this.firebase.object(`allPosts/${this.postID}`).snapshotChanges();

#2

See:


#3

thank you for reply some how manage to that but the problem is if i want assign values to another object that are receiving from the observerbale how to do that .read lot thing in stack overflow and official doc but i cant figure out proper way


#4

Then you need to retrieve the snapshot by subscribing.

Here is how: https://github.com/angular/angularfire2/blob/master/docs/rtdb/objects.md#retrieving-the-snapshot