I'm running a jQuery animation, after which I need to update the value of the data inside the animated element.
For some reason I cannot do this
$scope.myVar = "START";
$("#div").delay(100).animate({
top: '50px'
}, {
duration: $scope.speed,
easing: $scope.ease,
complete: function () {
$scope.myVar = "FINISHED";
}
});
When logging the variable it does update; however, this is not reflected on screen.