I want to display selected item in Dropdown list based on id.
<div class="formrow" *ngFor='let a of applicantName'>
<label>Status Selection :</label>
<select id="AStatus" formControlName="AStatus" class="form-control">
<option value="0">All</option>
<option *ngFor="let apt of applicantStatus" [value]="apt.ApplicantStatusID" [selected]="apt.ApplicantStatusID === a.Status">
{{ apt.ApplicantStatus }}
</option>
</select>
</div>
This code is not working and not showing selected option.
ngModeland this model can be set with the value ofidts, how is AStatus defined? Did you try [formControlName]=....?