samedi 10 novembre 2018

Angular 6 checkbox triggers change when ngModel value is true

I have ngFor and inside I have checkbox.

<input type="checkbox" name="checkbox-"
  (change)="clickOn(test.fav)" [(ngModel)]="test.fav" />

clickOn() event triggers, when test.fav value is true. Anybody used to have this problem? Regards.




Aucun commentaire:

Enregistrer un commentaire