There is a code that tracks the slider position changes . However, when you first start, the slider is not in the specified position. What could be the problem?

var viewModel = { id: ko.observable("slider-new"), min: ko.observable(10), max: ko.observable(100), value: ko.observable(20) //начальное положение слайдера }; ko.applyBindings(viewModel); 

    1 answer 1

    I'm not sure that a good solution, however, as I understand it, the jquery plugin runs before the knockout, try using setTimeout to execute it after

    • Try to write more detailed answers. Explain what is the basis of your statement? - Nicolas Chabanovsky