How to use default checked radio button? (Ionic 2, RC1)

<ion-list radio-group *ngIf="multioffer.property_type == 'radio'"  [(ngModel)]="multioffer.current_value">
  <ion-list-header>
    {{multioffer.title}}
  </ion-list-header>
  <ion-item *ngFor="let multioffer_value of multioffer.values">
    <ion-label>{{multioffer_value.value}}</ion-label>
    <ion-radio (click)="multioffer.setCurrentValue(multioffer_value); changeMultiOffer()" [checked]="(multioffer.current_value['value']==multioffer_value.value) ? true : null" [value]="multioffer_value.value"></ion-radio>
  </ion-item>
</ion-list>

My problem is how to set default checked value in radio buttons?
[checked]="(multioffer.current_value['value']==multioffer_value.value) ? true : null" //Not working
[attr.checked]="(multioffer.current_value['value']==multioffer_value.value) ? 'true' : null" //Not working

The problem was in [(ngModel)]="multioffer.current_value"
It is not assignable to value
[value]="multioffer_value.value"

1 Like