How to inspect Angular scope for an HTML element

May 18, 2015 at 11:41 AMMadestro

It turns out there is a very simple way to inspect the Angular scope for a particular HTML element if you are using Chrome.

Simply right click on an element on the page, select inspect element, switch to the console tab and type the following:

angular.element($0).scope()

Alternatively, you can select an element from the HTML tab and then go to the console and type the script command.

Posted in: Angular

Tags: