vendredi 31 mars 2017

input check box need to be in checked at first in ng2

This below is that i am expecting to be evaluated,but,this input checkbox need to be in ticked (visually) condition when its all loaded. But, as of now, it is not happening. on this code, my functionality working fine, additionally, i need this update on this checkbox in ng2. On loading of all checkboxes need to be in ticked condition(visually, true in technical), if i change the value that should be updated to ngModel.

Any clue, pls?

<input type="checkbox" value="" [(ngModel)]="item['checked']" id="myCheck" (change)="itemRemovelist(item, item['checked'])">




Aucun commentaire:

Enregistrer un commentaire