Skip to content

mmaestri/angular-toggle-switch

 
 

Repository files navigation

angular-toggle-switch

Toggle Switches for AngularJS. Based off Bootstrap switch by Matt Lartentis.

Demo

cgarvis.github.io/angular-toggle-switch

Installation

Download angular-toggle-switch.min.js or install with bower.

$ bower install angular-toggle-switch --save

Load angular-toggle-switch.min.js then add the toggle-switch module to your Angular App.

angular.module('app', ['toggle-switch']);

Usage

<toggle-switch model="switchStatus"></toggle-switch>

or

<div toggle-switch model="switchStatus"></div>

Custom Labels

<toggle-switch model="switchStatus" on-label="True" off-label="False"></toggle-switch>

Development

Testing is done using Karma Test Runner.

$ grunt karma:unit

Release

$ grunt release

Packages

No packages published

Languages

  • JavaScript 59.2%
  • CSS 40.8%