I'm using ionic 3, thus angular and typescript.
What I'm trying to achieve is to use the ngFor with a Map type.
Here is what I have:
interface IShared_Position {
lat: number;
lng: number;
time: number;
color?: string;
}
public shared_position = new Map<string, IShared_Position>();
And now from the html side I have:
<ion-list>
<ion-item ion-item *ngFor="let item of shared_position">
<h2>{{ item.time }}</h2>
</ion-item>
Now this gives me the following error:
Error: Cannot find a differ supporting object '[object Map]' of type 'object'. NgFor only supports binding to Iterables such as Arrays.
Now is there any possibile way I cant bind my map even if it is not iterable?
What should I do?