Here's my enum:
export enum MyTypes {
House = 1,
Apartment = 2,
Flat = 3,
Studio = 4
}
if I cycle in a select this way:
<mat-select formControlName="myTypeField">
<mat-option [value]="item.value" *ngFor="let item of myTypes"
>{{ item.key }}
</mat-option>
</mat-select>
it shows:
1
2
3
4
House
Apartment
Flat
Studio
i.e. show both keys and values. Why?