ng2-slide-toggle
This is a slide toggle switch with dynamic color and text depending on the state.
Usage
npm install --save ng2-slide-toggle
;
@Input() and @Output() with defaults
onText = 'ON'; offText = 'OFF'; onColor = '#0088cc'; value = false; valueChange = new EventEmitter;