apollodec/Apollo/bower_components/angular-ui-switch/example/app.js
saravanakumar_kandasami 7d72a0b91a updated code
2017-11-21 14:56:39 +05:30

13 lines
274 B
JavaScript

angular.module('app', ['uiSwitch'])
.controller('MyController', function($scope) {
$scope.enabled = true;
$scope.onOff = true;
$scope.yesNo = true;
$scope.changeCallback = function() {
console.log('This is the state of my model ' + $scope.enabled);
};
});