I have the following object:
itemList = {
"0": [],
"1": [],
"2": [],
"3": []
};
I also have the following *ngFor
:
<div *ngFor="let new of news; let newindex = index;">
<div *ngFor="let item of itemList.newindex">
</div>
</div>
As you can see I'm trying to access itemList[0]
, for example using the newindex
created.
Is this possible?