Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229594

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

$
0
0

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>

Viewing all articles
Browse latest Browse all 229594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>