Step slider with event listeners(see console log)
This slider has event listeners attached to it, assigned by defining the listeners in the option passed to the slider. For example in controller:
$scope.slider = {
'options': {
start: function (event, ui) { $log.info('Slider start'); },
stop: function (event, ui) { $log.info('Slider stop'); }
And in markup
<div ui-slider="slider.options"
min="0"
max="50"
ng-model="demoVals.sliderExample1"></div>
Options may also be set in in service uiSliderConfig, ie:
app.factory('uiSliderConfig', function ($log) {
return {
start: function (event, ui) { $log.info('Slider start'); },
stop: function (event, ui) { $log.info('Slider stop'); }
};
});