Last Updated: September 09, 2019
·
881
· rev087

ng-inspector for AngularJS console integration

If you are working in an AngularJS project and have the ng-inspector browser extension installed, you have access to the global $scopeId() method, that accepts the ID of a scope as a string, and returns a reference to that scope.

With that you can call methods, change models and call AngularJS scope methods like $apply()

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

AngularJS pages are long-lived browser apps with the same script risk as a newer single-page app. Third-party code in the template can read forms and values rendered on the page.

Security insights from Cside