I would like to access my $scope variable in Chrome\'s JavaScript console. How do I do that?
$scope
I can neither see $scope nor the name of my mo
Say you want to access the scope of the element like
You could use the following in the console:
angular.element(document.querySelector('[ng-controller=hw]')).scope();
This will give you the scope at that element.