The Chrome Dev Tools console is an amazing tool. In this lesson you'll learn how to use the console to programmatically grab scopes in your AngularJS application.
I have always wanted to know how to do this. Thanks!
Chrome has extension for Angular, so you can observe scopes and relations between them more easily.
You can get $scope in chrome dev tools by installing Angularjs Batarang from the chrome web store. Thats pretty sweet too!
anyone happen to know how to access the "controllers" scope when using controller as syntax? I can access the scope, but not the controller :)
The "controller as" is simply on the scope, so get the scope, then scope.myController (or whatever you aliased your controller to).
I think you can just use $scope w/o creating the var $scope = angular.element($0).scope() and it works the same.