Angular Switcher is an AngularJS directive that models toggle switches.
npm install angular-switcher



Angular Switcher is an AngularJS directive that models toggle switches.
Check out the demo page: http://indrimuska.github.io/angular-switcher.
npm install angular-switcher
bower install angular-switcher
git clone https://github.com/indrimuska/angular-switcher.git
`Include style and script in your page:
`html
`Add switcher dependency to your module:
`js
var app = angular.module('MyApp', ['switcher']);
`Demo
http://indrimuska.github.io/angular-switcherOptions
Parameter | Type | Description
---|---|---
ng-model | string | Assignable angular expression to data-bind to.
ng-disabled | expression | If the expression is truthy, it disable the switcher.
true-value | expression | The value to which the expression should be set when selected (default: true).
false-value | expression | The value to which the expression should be set when not selected (default: false).
true-label | string | HTML expression label assigned to the selected value (default: On).
false-label | string | HTML expression label assigned to the unselected value (default: Off).Events
Callback | Parameters | Description
---|---|---
ng-change | newValue, oldValue` | Fired every time the switch has been toggled.