Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 665 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 665 Bytes

NGSwitchery

An AngularJS Directive for Switchery.

##Usage##

  1. Include switchery/dist/switchery[.min].css from your vendors/components folder in your links.
  2. Include switchery/dist/switchery[.min].js from your vendors/components folder in your scripts.
  3. Include ng-switchery.js in your scripts
  4. Declare a dependency on the NgSwitchery module
  5. 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 />