Can't Show My Array Data In My Page From Database In Angular 5?
I hope you're all fine, so I am having a little problem, I am getting data from firebase and I have an array containing an array and I want to show it in my view but I can't, I wil
Solution 1:
It sounds like you just need the safe navigation operator so the template doesn't try to access the properties of the object before it is defined.
Try the following:
<li *ngFor="let cmt of post.comments" >{{ cmt?.comment }}</li>
Post a Comment for "Can't Show My Array Data In My Page From Database In Angular 5?"