Toggle Switches for AngularJS. Based off Bootstrap switch by Matt Lartentis.
FORK
- added a
toggle
attr evaluated each time the user click on the toggle. - now
toggle-switch
does NOT change the boolean value of themodel
attribute and use it only as a read-only property.
<toggle-switch model="alert.active" toggle="toggleActive(alert)" on-label="Active" off-label="Inactive"><toggle-switch>
cgarvis.github.io/angular-toggle-switch
$ bower install angular-toggle-switch2 --save
angular.module('app', ['toggle-switch']);
See demo for usage.
Testing is done using Karma Test Runner.
$ grunt test
$ grunt release