Last Updated: February 25, 2016
·
659
· ivanreese

Inspecting Angular's Scope for any Element

First, right-click on the element and select Inspect Element. You can access the currently selected element in the console with the $0 variable. To retrieve the scope associated with the element, run: angular.element($0).scope()

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

Angular apps often share the page with analytics and payment scripts that are not Angular modules. Those scripts execute on the same origin as the framework.

Security insights from Cside