npm install ng2-ui-switch###This is a fork of angular2-ui-switch.
New Features:
- AOT ready
- Updated to Angular 2.4.7
This is a simple iOS 7 style switch component for Angular2.
!alt
Inspired by switchery - in angular2.
``bash`
npm install ng2-ui-switch --save
`javascript
import { UiSwitchModule } from '@youmesoft/ng2-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``