Logarithmic slider. The steps of this slider are not linear but logarithmic...
npm install ngx-logarithmic-sliderLogarithmic slider. The steps of this slider are not linear but logarithmic...
``bash`
npm install ngx-logarithmic-sider --save
`typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { LogSliderLibraryModule } from 'ngx-logarithmic-slider';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
LogSliderLibraryModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
`
`html`
`typescript`
sliderValue = 1000; // This is the initial value the input box and slider will assume
sliderMin = 20; // Minimum limit for the slider.
sliderMax = 2000000; // Maximum limit for the slider.
inputStyle = { color: 'red'}; // ngStyle object for the input box - Unused in this version because of an Error NullInjectorError: No provider for KeyValueDiffers!
sliderStyle = { cursor: 'ew-resize' }; // ngStyle object for the slider - Unused in this version because of an Error NullInjectorError: No provider for KeyValueDiffers!
`bash``
git clone https://github.com/devendrap/ngx-logarithmic-slider.git
cd ngx-logarithmic-slider
npm install
ng serve