Radio button is not working properly in angular
<li *ngFor="let x of addressdata;let i = index"> <div class="col-md-2"> <input type="radio" [value]="x.PreferedAddress" [(ngModel)]="x.PreferedAddress" (ngModelChange)="RadioCheck(i)" name="radiogroup" id="Prefered"/> </div> </li>
from db i get 3 rows and binding correctly, for particular row only have PreferedAddress=1 remaining has value 0. but in list by default last row radio button is checked
Add comment