You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
and $scope.value is defined in the controller like...
$scope.value = 5;
However, the controller's 'value' isnt getting updated. In Models for (003) you can see that 'value' is 9. But in the slider on the left, you can see I dragged the slider to 6 and if we were to look inside Scope (004) value would be equal to 6 matching what's in the DOM.
If I run a $scope.$apply(), the bindings will get sync'd and the controller's 'value' will change to 6.
Thanks,
Jim
The text was updated successfully, but these errors were encountered:
Quick follow on, adding an ng-mouseup to the sliders calling an empty function is enough to make everything work without having to touch the directive's source.
Running the provided example.html completely unaltered...
The single slider is being declared as...
<slider //configRemovedForClarity// ng-model='value' style="width: {{ sliderWidth }};">
Value:
and $scope.value is defined in the controller like...
$scope.value = 5;
However, the controller's 'value' isnt getting updated. In Models for (003) you can see that 'value' is 9. But in the slider on the left, you can see I dragged the slider to 6 and if we were to look inside Scope (004) value would be equal to 6 matching what's in the DOM.
If I run a $scope.$apply(), the bindings will get sync'd and the controller's 'value' will change to 6.
Thanks,
Jim
The text was updated successfully, but these errors were encountered: