I would like to access my $scope
variable in Chrome\'s JavaScript console. How do I do that?
I can neither see $scope
nor the name of my mo
Just define a JavaScript variable outside the scope and assign it to your scope in your controller:
var myScope;
...
app.controller('myController', function ($scope,log) {
myScope = $scope;
...
That's it! It should work in all browsers (tested at least in Chrome and Mozilla).
It is working, and I'm using this method.