Saturday, July 18, 2015

Reference AngularJS's `$scope` in Chrome's Console

To reference AngularJS's `$scope.events` in Chrome's Console,

select the target element in `Elements` tab and use the following in `Console` tab:

angular.element($0).scope().events

Reference:
http://stackoverflow.com/questions/13743058/how-to-access-the-angular-scope-variable-in-browsers-console

No comments:

Post a Comment