I am trying to use a simple ngFor but I am dealing with one problem.
Object
export class Post {
$key: string;
title: string;
subtitle: string;
postedBy: string;
imageUrl: string;
paragraphs: [] = [];
}
my intention is to use the following HTML code:
<p *ngFor="let p of databaseService.selectedPost[0].paragraphs">a</p>
meaning that I want to show one paragraph per paragraph of my object but I get this error:
ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.
I have tried to use console.log(this.selectedPost[0].paragraphs.p1); being p1 there first of my paragraphs and it actually works but I am not able to do it from HTML (it has p1, p2, p3.. as names). The next picture shows the console.log
This is the object in the database:
How could I do it?

