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

Commit 0d327cd

Browse files
committed
Merge pull request #114 from edpauto/master
Add .$apply method for digesting
2 parents a85608a + 671e869 commit 0d327cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

slider.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ angular.module('ui.bootstrap-slider', [])
163163
var fn = $parse(attrs[sliderEventAttr]);
164164
slider.on(sliderEvent, function (ev) {
165165
if ($scope[sliderEventAttr]) {
166-
fn($scope.$parent, { $event: ev, value: ev });
166+
$scope.$apply(function () {
167+
fn($scope.$parent, { $event: ev, value: ev });
168+
});
167169
}
168170
});
169171
});

0 commit comments

Comments
 (0)