A switch component for Angular 2.
$ npm install --save ng2-switch
import { NgSwitchModule } from 'ng2-switch';
@NgModule({
imports: [NgSwitchModule]
})
<ng-switch [(ngModel)]="value"></ng-switch>
name | description | type | default |
---|---|---|---|
disabled | determine whether the Switch is disabled | Boolean | false |
ngModel | two way bind | Boolean | - |
MIT