NgxSliderModule

There are a few options on how to include NgxSliderModule into your Angular project.

Install from NPM

Install the NgxSlider module from the command prompt from the root directory of the project:

yarn add ngx-slider --save

Import the NgxSlider module in your Angular module file (e.g., app.module.ts):

import { NgxSliderModule } from 'ngx-slider';

Add the NgxSlider module to the imports array:

@NgModule({
declarations: [ /* your components */ ],
imports: [
    BrowserModule,
    NgxSliderModule,
    // other imports
],
providers: [],
bootstrap: [AppComponent]
})

Below is an example of how to use the NgxSlider in your component:

HTML

<ngx-slider [(value)]="sliderValue" [options]="sliderOptions"></ngx-slider>

JavaScript (in your component file):

import { Component } from '@angular/core';
            
@Component({
    selector: 'app-slider',
    templateUrl: './slider.component.html',
})
export class SliderComponent {
    sliderValue: number = 50; // Default value
    sliderOptions: any = {
        floor: 0,
        ceil: 100,
        step: 1,
    };
}

Make sure to refer to the official documentation for further customization options.

Receive the latest updates directly in your inbox!

Be the first to know about new updates and exclusive discounts. No spam, just great offers!

How about

A Custom Project?

With over 7 years of experienced team, we specialize in delivering custom projects for startups, blue-chip companies, and government agencies. We have successfully completed over 250+ projects, providing tailored solutions that meet the unique needs of each client.

Hire Us
Domiex Admin & Dashboards
230+

Total Pages

5+

Layouts

11+

Application

We provide quick support withing one business day to all of our customers.

© Domiex Created & Crafted by SRBThemes.