Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 851 Bytes

File metadata and controls

21 lines (11 loc) · 851 Bytes

angular-toggle

Directive to use Bootstrap switch by Matt Lartentis in angularJS. Allows you to add a toggle switch styled checkbox to your pages with one directive.

##Usage

Note that state object and callback function must be in your scope

<toggle ng-model="state" action="callback()" disabled="disabled"></toggle>

##Installation Add to your project angular-toggle source and bootstrap-switch sources (bootstrap-switch.min.js and bootstrap-switch.css).

Include the angular-toggle directives dependency on your angular module

angular.module("myapp", ["angularToggleDirectives"]);