An AngularJS Directive for Switchery.
##Usage##
- Include
switchery/dist/switchery[.min].css
from your vendors/components folder in your links. - Include
switchery/dist/switchery[.min].js
from your vendors/components folder in your scripts. - Include
ng-switchery.js
in your scripts - Declare a dependency on the NgSwitchery module
- Add the
ui-switch
attribute to a checkbox.
##Example##
Declare a dependency on the module
angular.module('myModule', ['NgSwitchery']);
Insert checkbox html
<input type="checkbox" class="js-switch" ui-switch checked />