I had used a mat-select component in my project, for which the code is:
<div class="col-md-6">
<mat-form-field>
<mat-select placeholder="Select Job" formControlName="job_instruction_id" [(value)]="jifId">
<mat-option *ngFor="let jif of jifList" [value]="jif.id">
{{jif.id}}.....{{ jif.jif_no }} ---- {{ jif.job_name }}
</mat-option>
</mat-select>
</mat-form-field>
</div>
the jifId
holds value 1
at the moment, and the mat option values are 1
and 2
, but still the first option is not pre selected when the page loads.