-
-
Save JacksonGariety/8233678 to your computer and use it in GitHub Desktop.
foobar
This file contains 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
angular.injector(['ng']).invoke(function ($rootScope) { | |
// If I use this method, the function never fires, hmmmm | |
$rootScope.$on('$viewContentLoaded', function() { | |
console.log("foo") | |
}) | |
// If I use this one, the entire app fails to render | |
$rootScope.$evalAsync(function() { | |
console.log("foo") | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment