Can someone help me figure out how to display this array of objects in Angular?
var list = [{
collaborators: [{
id: 1,
name: "test"
}]
},
{
colleagues: [{
id: 2,
name: "colleague2"
}]
}
]
I attempted the following approach:
<div *ngFor="let el of list">
<div *ngFor="let e of el.collaborators">
{{e.id}}
</div>
</div>
Unfortunately, it doesn't seem to be working as intended