Answers for "how to iterate map in html"

0

angular loop through key values in map

this.map.forEach((value: string, key: string) => {
    console.log(key, value);
});
Posted by: Guest on August-21-2020
0

how to iterate map in html

<ul>
    <li *ngFor="let recipient of map | keyvalue">
        {{recipient.key}} --> {{recipient.value}}
    </li>
</ul>
Posted by: Guest on September-26-2020

Browse Popular Code Answers by Language