How can I set as default selected option the first element of the Map I'm using for mat-select? I have:
<mat-select formControlName="formValoreScadenzario" [(value)] ="selectedValoreScadenzario">
<mat-option *ngFor="let scad of mappaValoriScadenzario" [value]="scad.key">
{{scad.value}}
</mat-option>
</mat-select>
where mappaValoriScadenzario
is my map. How can I set as default-selected value the first key-value element of my Map? I've only found examples with hardcoded value or with simple arrays of strings.