You can just use the “keyvalue” pipe introduced in Angular 6.1.
<p *ngFor="let enum of TestEnum | keyvalue">
{{ enum.key }} - {{ enum.value}}
</p>
See here for a full example ->
https://stackblitz.com/edit/angular-gujg2e
You can just use the “keyvalue” pipe introduced in Angular 6.1.
<p *ngFor="let enum of TestEnum | keyvalue">
{{ enum.key }} - {{ enum.value}}
</p>
See here for a full example ->
https://stackblitz.com/edit/angular-gujg2e