Skip to content

Instantly share code, notes, and snippets.

@rcanepa
Created January 17, 2018 20:24
Show Gist options
  • Save rcanepa/887fa5ca213cf1d1ca7b493a49775dd1 to your computer and use it in GitHub Desktop.
Save rcanepa/887fa5ca213cf1d1ca7b493a49775dd1 to your computer and use it in GitHub Desktop.
Debugging scope on Angular 1
On the console, inspect an element that is part of the scope.
Then execute the following on the console:
> scope = angular.element($0).scope()
> scope.vm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment