mardi 14 octobre 2014

Angular-UI: $watch + controllerAs not working with radio buttons


Vote count:

0




I'm trying to use a set of buttons with angular-UI (bootstrap). It worked until I tried to shift to ControllerAs. Now the buttons are totally unresponsive.


In the HTML I declare HTML has ButtonsCtrl as buttons, while in the controller I have:



$scope.$watch('buttons.checkModel', function(newVal) {
this.extra = "checkModel extra";
})


Plunkr here


I have tried via the angular.bind pattern in the $watch function but that also did not work.



asked 34 secs ago







Angular-UI: $watch + controllerAs not working with radio buttons

Aucun commentaire:

Enregistrer un commentaire