vendredi 30 octobre 2015

Pass checkbox value to angular's ng-click

Is there a way to pass to angular directive ng-click the value of the associated input?

In other words, what should replace this.value in the following:

<input type="checkbox" id="cb1" ng-click="checkAll(this.value)" />

PS. I don't want a workaround to alternate values, I just wonder if is possible to pass a value of an input as argument to a angular function.




Aucun commentaire:

Enregistrer un commentaire