So I am basically trying to access the values of one of the objects within my object in my Angular code. It is a Map object and looks a bit like this
export interface CalendarEvent<MetaType = any> {
id?: string | number;
start: Date;
end?: Date;
title: string;
color?: EventColor;
actions?: EventAction[];
allDay?: boolean;
cssClass?: string;
resizable?: {
beforeStart?: boolean;
afterEnd?: boolean;
};
draggable?: boolean;
meta?: MetaType;
amount: number;
type: Map<string, string>
}
I have tried creating an NgFor which I have seen in previous solutions online like so
<p *ngFor="let item of modalData?.event.type.keys | keyvalue" > {{item.key}} {{item.value}} </p>
I want to display the key and value pair within my line of code