I'm trying to set a value programatically of a md-radio-button inside of a md-radio-group. Here is my code simplified :
<md-radio-group [(ngModel)]="radioGroupValue">
<div *ngFor="let answer of answers; let i = index">
<md-checkbox *ngIf="isMultiple" [(ngModel)]="answer.isCorrect" [value]="i" ngDefaultControl></md-checkbox>
<md-radio-button *ngIf="!isMultiple" [(ngModel)]="answer.isCorrect" [value]="i" ngDefaultControl></md-radio-button>
{{ answer.text }}
</div>
</md-radio-group>
When I change isMultiple from true to false, I update radioGroupValue too. The first time, there is no md-radio-button checked, and if I change isMultiple to true again and false, the right radiobutton is checked. How can I handle that ?
*ngIfas*nfIf!md-checkboxinsidemd-radio-group?