angular-toggle-switch2
Toggle Switches for AngularJS. Based off Bootstrap switch by Matt Lartentis.
FORK
- added a
toggleattr evaluated each time the user click on the toggle. - now
toggle-switchdoes NOT change the boolean value of themodelattribute 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>
Demo
cgarvis.github.io/angular-toggle-switch
Installation
$ bower install angular-toggle-switch2 --saveangular.module('app', ['toggle-switch']);See demo for usage.
Development
Testing is done using Karma Test Runner.
$ grunt testRelease
$ grunt release