Skip to content

Commit

Permalink
updated Readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Grinfeder committed Jan 8, 2014
1 parent b26eb95 commit d00c06a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ An AngularJS Directive for [Switchery](http://abpetkov.github.io/switchery/).

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. Add the `ui-switch` attribute to a checkbox.
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']);
```

```html
<input type="checkbox" class="js-switch" ui-switch checked />
```

0 comments on commit d00c06a

Please sign in to comment.