run loop angular map code example
Example 1: angular loop through key values in map
this.map.forEach((value: string, key: string) => {
console.log(key, value);
});
Example 2: how to iterate map in html
<ul>
<li *ngFor="let recipient of map | keyvalue">
{{recipient.key}} --> {{recipient.value}}
</li>
</ul>