I'm receiving these results from an API:
{
"97": {
"Title": "This is a title",
},
"98": {
"Title": "This is another title",
}
}
I'm using this interface:
export interface Product {
Title: string;
}
export interface SKU {
[key: string]: Product
}
Does my interface looks alright? And how do I work with this type of stracture in Angular regarding *ngFor?
ngForyou would have to convert this to an array or something you can iterate over