Skip to content

FGRibreau/angular-toggle-switch

 
 

Repository files navigation

angular-toggle-switch2 Build Status

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 the model 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>

Demo

cgarvis.github.io/angular-toggle-switch

Installation

$ bower install angular-toggle-switch2 --save
angular.module('app', ['toggle-switch']);

See demo for usage.

Development

Testing is done using Karma Test Runner.

$ grunt test

Release

$ grunt release

About

[Fork] AngularJS Toggle Switch

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 63.8%
  • CSS 36.2%