I am having this object:
protected products: {
[key: string]: {
color: string,
brand: string,
};
} = {};
products = {
scan12345: {color: "Orange", brand: "X"},
scan13813: {color: "Pink", brand: "X"},
}
How can I iterate through this project in my component Tempate? I tried:
<ion-item *ngFor="let pro of products">
{{ pro.color }}
</ion-item>
In a project that I use Angular 8, keyValue pipeline worked. What can I do here? I am using "target": "es2015".