xpepermint / angular-ui-switch

On/off switch button for AngularJS. DEPRECATED!
278 stars 125 forks source link

Switch name chnage its not working #12

Open Gajendrasinh opened 9 years ago

Gajendrasinh commented 9 years ago

Hi when i just change the name of switch its not working

Enabled: {{ yesNo2}}

I am just replace name yesNo to change yesNo2 but its not working

angular.module('app', ['uiSwitch'])

.controller('MyController', function($scope) { $scope.enabled = true; $scope.onOff = true; $scope.yesNo2 = true;

$scope.changeCallback = function() { console.log('This is the state of my model ' + $scope.enabled); }; });