Angular (2+) Implementation of switchery form control Works with Angular 15
Angular-Switchery is a simple component that helps you turn your default HTML checkbox inputs into beautiful iOS 7 style switches in just few simple steps. You can easily customize switches, so that they match your design perfectly.
Supported by all modern browsers: Chrome, Firefox, Opera, Safari, IE9+
$ npm install angular-switchery
import {AngularSwitcheryModule} from 'angular-switchery'
...
imports: [
...
AngularSwitcheryModule
...
]
## Examples
##### Checked
Only thing you need is to add a `checked` attribute to your checkbox input. Simple as that.
```html
<angular-switchery></angular-switchery>
<angular-switchery disabled="disabled"></angular-switchery>
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery>
<angular-switchery [(ngModel)]="swticherModel"></angular-switchery>
Switcher: {{swticherModel? 'ON' : 'OFF'}}
<angular-switchery #f="ngForm" [formControl]="switcheryControl"></angular-switchery>
switcheryControl.value : {{f.value}}
You can play with all the examples here