angular-toggle-switch2

[Fork] AngularJS Toggle Switch


Keywords
angular, angularjs, angular.js, toggle, switch, toggle switch, angular toggle, angular switch
License
MIT
Install
bower install angular-toggle-switch2

Documentation

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