Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Ionic v5 ion-radio needs help!

$
0
0

@7doctor wrote:

the ion-radio component doesn’t have a checked attribute in version 5
so, maybe somebody can help me that how to set up default selection in the *ngFor list of ion-radio’s

    <ion-radio-group (ionChange)="radioHandler($event.detail.value)">
      <ion-item *ngFor="let service of srvices">
        <ion-grid>
          <ion-row class="ion-align-items-center">
            <ion-col size="2">
              <ion-radio [value]="service.id" [checked]="service.choosed"></ion-radio>
            </ion-col>
            <ion-col size="4">
              <ion-label [innerText]="service.name" class="usr-checkbox-text"></ion-label>
            </ion-col>
          </ion-row>
        </ion-grid>
      </ion-item>
    </ion-radio-group>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



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