Default selected value ion ion-radio that have dynamic values using reactive form


#1

i’m using ion-radio , that have dynamic value, and need to set the first value as selected using reactive form.

<ion-list radio-group formControlName="typeName">
            <ion-label class="label-radio">
              Type
            </ion-label>
            <ion-item *ngFor="let option of options">
              <ion-label>{{option.name}}</ion-label>
              <ion-radio [value]="option.id"></ion-radio>
            </ion-item>
          </ion-list>