Created
July 18, 2014 12:26
-
-
Save raimohanska/4fccba2727e6881cd8c0 to your computer and use it in GitHub Desktop.
Wait until angularjs is done with processing its stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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