Kit Johnson
0
Q:

how to iterate map in html

this.map.forEach((value: string, key: string) => {
    console.log(key, value);
});
0
<ul>
    <li *ngFor="let recipient of map | keyvalue">
        {{recipient.key}} --> {{recipient.value}}
    </li>
</ul>
0

New to Communities?

Join the community