Created
January 17, 2018 20:24
-
-
Save rcanepa/887fa5ca213cf1d1ca7b493a49775dd1 to your computer and use it in GitHub Desktop.
Debugging scope on Angular 1
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
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