I have an object with protected products:
protected products: {
[key: string]: {
color: string,
brand: string,
};
} = {};
products = {
scan12345: {color: "Orange", brand: "X"},
scan13813: {color: "Pink", brand: "X"},
}
How can I loop through this project in my component template? I attempted the following:
<ion-item *ngFor="let pro of products">
{{ pro.color }}
</ion-item>
In a previous Angular 8 project, I used the keyValue pipe. Any suggestions on what I should do here? I am utilizing "target": "es2015".