dimanche 17 décembre 2017

get checkbox state when onChange is triggered

I'm playing in angular and bootstrap. The question is very trivial. I have input element in my html

  <label><input  (change)="callFilt()"  type="checkbox" 
    value=""></label> 

I want to get state of checkbox in my callFilt method.I see that it's possible via ng-model,but I dont want to use any other directives here,is there way to send state of the checkbox?

Neither I want to set id of checkbox and get state via ID in my js code.




Aucun commentaire:

Enregistrer un commentaire