mercredi 12 octobre 2016

$watch on chackbox not working

I am using angular-bootstrap-checkbox like below:

<checkbox class="checkbox" ng-model="manualPosition"></checkbox>

I want to watch the changes for the checkbox values. I tried like below in the controller:

$scope.$watch('checkboxVal', function (checkboxVal) {
    console.log('here');
});

It doesn't work for me.




Aucun commentaire:

Enregistrer un commentaire