UNPKG

angular-ui-switch

Version:
14 lines (10 loc) 299 B
angular.module('app', ['uiSwitch']) .controller('MyController', function($scope) { $scope.enabled = true; $scope.onOff = true; $scope.yesNo = true; $scope.disabled = true; $scope.changeCallback = function() { console.log('This is the state of my model ' + $scope.enabled); }; });