Skip to content

Instantly share code, notes, and snippets.

@raimohanska
Created July 18, 2014 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raimohanska/4fccba2727e6881cd8c0 to your computer and use it in GitHub Desktop.
Save raimohanska/4fccba2727e6881cd8c0 to your computer and use it in GitHub Desktop.
Wait until angularjs is done with processing its stuff
waitForAngular = function(el, angular, callback) {
try {
angular.element(el).injector().get('$browser').notifyWhenNoOutstandingRequests(callback);
} catch (e) {
callback(e);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment