Closed staklau closed 8 years ago
I need to load the min- and max values from an external source so that I can set the min and max values of a slider like this.
$scope.minMaxValues = { slider1: { min: 0, max: 200 }, slider2: { min: 0, max: 200 }, slider3: { min: 0, max: 200 }, slider4: { min: 0, max: 200 }, slider5: { min: 0, max: 200 } };
<div class = "ui-slider-range ui-slider-handle" ui-slider="{range: true}" min="minMaxValues.slider1.min" max="minMaxValues.slider1.max" step="0.01" use-decimals ng-model="sliderValues[0]"></div>
How can this be done?
Have you changed the value of ng-model which is named sliderValues[0] ?
sliderValues[0]
I need to load the min- and max values from an external source so that I can set the min and max values of a slider like this.
How can this be done?