Skip to content

Instantly share code, notes, and snippets.

@j16r
Created January 31, 2014 17:07
Show Gist options
  • Save j16r/8736407 to your computer and use it in GitHub Desktop.
Save j16r/8736407 to your computer and use it in GitHub Desktop.
Do you need $apply when using $q.resolve outside of Angular's event loop?
setTimeout(function(){
$scope.$apply(function(){
deferred.resolve(message);
});
}, 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment