Skip to content

Instantly share code, notes, and snippets.

@JacksonGariety
Created January 3, 2014 06:16
Show Gist options
  • Save JacksonGariety/8233678 to your computer and use it in GitHub Desktop.
Save JacksonGariety/8233678 to your computer and use it in GitHub Desktop.
foobar
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