Ionic4 show data with ngFor inside an Object which is inside an Object

Im trying to show some data from Api, but the data I need is inside an object which is inside an object. how do I get it?

Im trying to get “full_url” inside data object, which is inside avatar object. I already tried:

    <ion-item *ngFor="let user of">
            <h2>{{ user.uname }}</h2>
            <p *ngFor="let data of">{{ data.url }}</p>

Here’s the Api Response Structure:

Response I got is:

Error: Cannot find a differ supporting object ‘[object Object]’ of type ‘object’. NgFor only supports binding to Iterables such as Arrays.

The error means:

You wrote let foo of bar, but bar isn’t something I can loop across. It’s an Object, which needs to be accessed by key instead. is an array.[0] is an object.

<p [innerText]="">

1 Like