ngx-slider-plugin

Light weight slider.

Usage no npm install needed!

<script type="module">
  import ngxSliderPlugin from 'https://cdn.skypack.dev/ngx-slider-plugin';
</script>

README

Slider Plugin

Installation

Run the following code in your terminal:

yarn add @ngx-slider-plugin

or if you are using npm:

npm install @ngx-slider-plugin

Usage

Setup Before Initial Use

Import ngx-slider-plugin into your root module like:

import { SliderPluginModule } from 'ngx-slider-plugin';

@NgModule({
  imports: [
    SliderPluginModule,
  ]
})
export class AppModule {}
    <ngx-slider-plugin [pipeFormatFn]="format" pipeDensity="11" [labelFormatFn]="format"  [step]="step" [min]="min" [max]="max" [formControl]="dates" [margin]="margin"></ngx-slider-plugin>
  format(val){
    return val+'h';
  }

License and copy right

© Shahid Ahmad

License under the MIT License.