Skip to content

ibufu/ng2-switch

Repository files navigation

ng2 switch

Angular npm npm-downloades license

A switch component for Angular 2.

Alt text

Installation

$ npm install --save ng2-switch

Usage

import { NgSwitchModule } from 'ng2-switch';
@NgModule({
    imports: [NgSwitchModule]
})
<ng-switch [(ngModel)]="value"></ng-switch>

props

name description type default
disabled determine whether the Switch is disabled Boolean false
ngModel two way bind Boolean -

license

MIT

About

A switch component for Angular 2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages