app.js 274 B

12345678910111213
  1. angular.module('app', ['uiSwitch'])
  2. .controller('MyController', function($scope) {
  3. $scope.enabled = true;
  4. $scope.onOff = true;
  5. $scope.yesNo = true;
  6. $scope.changeCallback = function() {
  7. console.log('This is the state of my model ' + $scope.enabled);
  8. };
  9. });