Answers for "angular foreach as key value"

6

ngfor on keys of a dictionary angular

<div *ngFor="let item of testObject | keyvalue">
    Key: <b>{{item.key}}</b> and Value: <b>{{item.value}}</b>
</div>
Posted by: Guest on April-30-2020
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

Code answers related to "angular foreach as key value"

Code answers related to "Javascript"

Browse Popular Code Answers by Language