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";
})
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