Within my object data, I have a nested structure-
"data": {
"serial": "123",
"def": {
"id": "456",
"data": {
"firstname": "abc",
},
"method": "post",
},
"ghi": {
"id": "456",
"data": {
"amount": "3500.0",
},
"method": "post",
},
"jkl": "done"
}
I assigned this to the items object. Next, I attempted displaying it in my HTML component like so-
<div *ngFor="let item of items | keyvalue">
<div>
<div>{{item.key}}:{{item.value}}</div>
</div>
</div>
However, the output appears as-
serial: 123
def: [object Object]
ghi: [object Object]
jkl: done
Could someone kindly advise on how to properly display this nested object? Appreciate any assistance!