Select checked / selected not working with formControlName


#1

I am working with dynamic form fields… it’s working fine but when i use checked (select) item, it’s not working, following is my code

<ion-option *ngIf="fieldValue.is_active == 1" selected [value]="fieldValue.size_name"  [innerHTML]="fieldValue.size_value"></ion-option>

following is not working

<ion-option *ngIf="fieldValue.is_active == 1" checked="true" [value]="fieldValue.size_name" [innerHTML]="fieldValue.size_value"></ion-option>