@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