Angular2 nouislider component
See demos
npm i --save nouislider ng2-nouislider
import { NouisliderModule } from 'ng2-nouislider';
@import "~nouislider/distribute/nouislider.min.css";
Add to map:
'nouislider': 'node_modules/nouislider',
'ng2-nouislider': 'node_modules/ng2-nouislider',
Add to packages:
'nouislider': { main: 'distribute/nouislider.js', defaultExtension: 'js' },
'ng2-nouislider': { main: 'src/nouislider.js', defaultExtension: 'js' },
<nouislider [connect]="true" [min]="0" [max]="15" [(ngModel)]="someRange"></nouislider>
this.form1 = this.formBuilder.group({ 'single': [ 10 ] });
<form [formGroup]="form">
<nouislider [min]="0" [max]="20" [step]="0.5" [formControl]="form.controls.slider"></nouislider>
</form>
npm i
npm start
open http://localhost:8080
MIT