loop through object in html angular code example
Example 1: 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>
Example 2: angular how to iterate object
keys() : Array<string> {
return Object.keys(this.myDict);
}