Active10 months ago
The Ignite UI for Angular Slider component allows selection in a given range by moving the thumb along the track. The track can be defined as continuous or stepped and you can choose between single and range slider types. Angular 2 Slider.
I am new to Angular and are trying to implement a double slider. I tried follow this sample:
https://angular-slider.github.io/ng5-slider/demosI add following:
html:
And this in my class:
Error:
My question are going to be a little blurry. Normally I would find some kind of bootstrap component and implement that in my html and javascript. But as I understand when working with Angular, you primary work with angular components. Is there something similar for bootstrap for Angular. I looked at Material but it didn't have double slider. Also can anyone recommend something to a get a double slider working?
Thomas Segato
Thomas SegatoThomas Segato
1 Answer
There are many bootstrap like packages for angular but there is no problem with the one you've picked for double slider.
From the error you've got we can see that you didn't add the Ng5SliderModule to your NgModule:
You can see the docs of ng5-slider git reposetory for more details.
![Range Range](/uploads/1/2/5/6/125619623/107989099.jpg)
benshabatnoambenshabatnoam
Not the answer you're looking for? Browse other questions tagged angular or ask your own question.
Active2 years, 4 months ago
slider.component.ts
When i called it from my main component.
Its thowing jquery.slider is not a function.
ERROR Error: Uncaught (in promise): TypeError: jQuery(...).find(...).slider is not a function
I tried normal jquery slider also . Here also got same issue. So i tried with angular2 component from the below example.
I got same issue.
Im using webpack version which is angular 4.
Any help on this can appreciate.
user2215155user2215155
1 Answer
If you use Angular-CLI:
angular-cli.json:
Where you are using jQuery UI Slider:
Hope it helps, let me know how it goes!
Good luck mate! ;)
14.1k99 gold badges3434 silver badges5959 bronze badges