angular 2 nouislider: How to recreate the slider?
问题 I need to change the number of handles on a slider. When googling it says I need to destroy and create the slider again. Now it says here: Updating and reading slider options that: To update any other option, destroy the slider using slider.noUiSlider.destroy() and create a new one. Note that events are not unbound when destroying a slider. I was able to destroy the slider: @ViewChild('slider') slider; destroySlider() { this.slider.slider.destroy(); } but I can't seem to find how to create