switch button for angular2
npm install angular2-ui-switchThis is a simple iOS 7 style switch component for Angular2.
!alt
Inspired by switchery - in angular2.
``bash`
npm install angular2-ui-switch --save
`javascript
import { UiSwitchModule } from 'angular2-ui-switch'
import { AppComponent } from './app.component';
@NgModule({
imports: [BrowserModule, FormsModule, UiSwitchModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
})
export class AppModule {
}
`
`html`
`html`
> type: boolean
> default: false
`html`
> type: boolean
> default: false
`html`
> type: event
> default: noop
`html`
> type: string
> default: medium
`html`
> type: boolean
> default: false
`html`
> type: string
> default: rgb(100, 189, 99)
`html`
> type: string
> default: #fff
`html``