This repository was archived by the owner on Nov 15, 2022. It is now read-only.
This repository was archived by the owner on Nov 15, 2022. It is now read-only.
Is a $apply missing? #61
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels