No more $scope.$apply
But how then AngularJS knows that anything outside it’s execution context has taken a place? Lets think where the changes might come from:
- prompt (yeah, there are people who still use it…)
So the library that does all this monkey patching is zone.js.
setInterval is monkey patched, as long as you called
jQuery.fadeIn within a
zone.run kind of replace
$scope.$apply, but it's different because it detects itself when asynchronous things have finished, whereas you have to call
$scope.$apply manually when you know things have finished.
See also this question+answer: Use zone.js to detect current execution context from anywhere?
if the browser exposes some new asynchronous API which isn't covered?
I guess they will patch that too.
If everything else fails, you can still call
I guess that's what you were looking for :)