Hello all I have just upgrade my angular version from 5 to 6 and after that checkbox is not working as expected. I am trying to set property [checked] but not set true or false. I am binding data from back side. Below is my code :
<tr *ngFor="let configuration of configurationList.sms;">
<td></td>
<td class="text-center">
<input type="checkbox" name="" [checked]="configuration.data" [(ngModel)]="configuration.data" (change)="onCheckedChange($event,configuration)">
</td>
</tr>
While data is returning perfect. Just look at the below image data is return false but still checkbox is load selected by default. What I am doing wrong?
Aucun commentaire:
Enregistrer un commentaire