Hello i want to display the values of this api response. Like this

Producer: Simon
Writer: Simon

person1: [[{value: "Producer: Simon"}, {value: "Writer: Simon"}]]
  0: [{value: "Producer: Simon"}, {value: "Writer: Simon"}]
    0: {value: "Producer: Simon"}
    1: {value: "Writer: Simon"}

I tried this but i am getting {}

               <div *ngFor="let media1 of person1; let i = index">
                    {{media1}}
                </div>

And when i call like this <ion-label>{{person1}}</ion-label> i am getting [object Object]

Any help?

I will preface this message with I don't know Angular at all.

However, it looks like person1 is an object that contains one property: a value.

When you're trying to print out person1, it's telling you it's an object, like an entity with many properties, and you need to tell it which property. I'm not sure the syntax to specify you want the value property of the person object, like {{person1.value}} ... Sorry, I don't know Angular so I don't know the Angular syntax to retrieve the value property.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.