Skip to content

Instantly share code, notes, and snippets.

@lovemyliwu
Created August 25, 2016 01:44
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 lovemyliwu/9e820a5ffb3fafb344a4bee2953a5741 to your computer and use it in GitHub Desktop.
Save lovemyliwu/9e820a5ffb3fafb344a4bee2953a5741 to your computer and use it in GitHub Desktop.
how to debug angular in chrome console
$injector = angular.injector(['accountsApp']);
$injector.invoke(['djangoUrl',function(djangoUrl){window.djangoUrl=djangoUrl;}])
window.djangoUrl
window.djangoUrl.reverse
scope = angular.element($0).scope();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment