Angular scope from Chrome Dev Tools console

With the dev tools open:

  1. Inspect an element inside the scope (right click > Inspect)
  2. Swap to the console tab, and type in angular.element($0).scope()
  3. If your controller is being initialized like <div ng-controller=”myController as vm”>, you can access all the properties of ‘myController’ (bound to vm) with angular.element($0).scope().vm