2.1.0 • Published 7 years ago
ng2-switch v2.1.0
ng2 switch
A switch component for Angular 2.
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 | - |