Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit ff743c5

Browse files
committed
Missing change event handler
1 parent 59088cb commit ff743c5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

slider.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ angular.module('ui.bootstrap-slider', [])
128128
} );
129129
} );
130130
} );
131+
slider.on( 'change', function ( ev ) {
132+
ngModelCtrl.$setViewValue( ev.value.newValue );
133+
$timeout( function () {
134+
$scope.$apply();
135+
} );
136+
} );
131137

132138
// Event listeners
133139
var sliderEvents = {

0 commit comments

Comments
 (0)