Skip to content

Commit 5a4c8aa

Browse files
author
Sovattha SOK
committed
Issue seiyria#108 Fix tooltip formatter
1 parent 00765fa commit 5a4c8aa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: slider.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ angular.module('ui.bootstrap-slider', [])
108108
}
109109

110110
if (attrs.formatter) {
111-
options.formatter = function(value) {
112-
return $scope.formatter({value: value});
113-
}
111+
options.formatter = $scope.$eval($scope.formatter);
114112
}
115113

116114

0 commit comments

Comments
 (0)