I have created a array like this
this.list= [{
id: 1,
value: 'One',
checked: true
},
{
id: 2,
value: 'Two'
}];
and i tried to do Two way binding like this
<ul *ngFor="let data of list;">
<div class="radio" >
<label>
<input type="radio" name="sex" [(ngModel)] = "data.checked" [checked]="data.checked">{{data.value}}
</ul>
but it doesn't work i want dynamically update the checked variable when radio button is clicked