Inspect the scope watchers of an Angular app

Latest Version

Version
1.0.1
Update
July 26, 2015
Size
35.49KiB
Developer
ryanoglesby08.github.io
Category
Users
4,000+
Rating
3.09524 ★
Manifest Version
2
Web Store Status
Languages Support
English (United States)
See more
Permissions
DeclarativeContent
ActiveTab
See more

AngularJS Inspect Watchers Extension

A Chrome extension that lets the user inspect the number of Angular watchers that exist on any element of an Angular app.

***** 4/20/2015 Update!
I just released v1.0.0 of the extension, which moves the extension from a Browser Action to a Page Action (icon appears in the address bar). A Page Action is more appropriate for this extension because the features only makes sense for a few web pages, those with AngularJS running.

Usage:
Once installed, navigate to your Angular app and click the Page Action in the address bar to activate the extension. Then, hover your mouse over different sections of your Angular application to see the scopes and watchers highlighted in red. Click the Page Action again to deactivate.

Motivation:
It is a well known fact that as the number of watchers in an Angular app increases, the digest cycle performance decreases. In Angular 1.3, anything over 2,000 watchers will dramatically effect performance. This extension can help you easily monitor the number of watchers you are adding.

Troubleshooting
I don't see the Page Action! What do I do? --> Ng Inspect Watchers can only be used on AngularJS apps that have debug info enabled. If you navigate to any web page that is either not an AngularJS app, or does not have debug info enabled, you will not be able to use the extension.

How do I enable debug info? --> The extension relies on the presence of `.ng-scope` and `.ng-isolate-scope` CSS class names. If you have run `$compileProvider.debugInfoEnabled(false);` on your app, it won't work. To get the classes back, you can run `angular.reloadWithDebugInfo();` in the console and try again. See https://docs.angularjs.org/guide/production#disabling-debug-data for more info.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "AngularJS Inspect Watchers", "description": "Inspect the scope watchers of an Angular app", "version": "1.0.1", "icons": { "48": "assets/icons/icon48.png", "128": "assets/icons/icon128.png" }, "page_action": { "default_icon": { "19": "assets/icons/icon19-gray.png", "38": "assets/icons/icon38-gray.png" }, "default_title": "Click to activate Ng Inspect Watchers" }, "content_scripts": [{ "matches": [""], "css": ["src/ng_inspect_watchers.css"], "run_at": "document_start" }], "background": { "scripts": ["src/page_action.js", "src/tab_status_monitor.js"] }, "permissions": [ "declarativeContent", "activeTab" ]}
Read more

Similar Extensions

icon

Angular DevTools Extension · Developer Tools 4,000+ 159 ★ 3.2MiB

icon

AngularJS Console Extension · Developer Tools 4,000+ 6 ★ 263KiB

icon

AngularJS Graph Extension · Developer Tools 4,000+ 35 ★ 559KiB

icon

ng-detector Extension · Developer Tools 4,000+ 19 ★ 105KiB

icon

AngularContext Extension · Developer Tools 4,000+ 0 ★ 22.57KiB

icon

Postman Interceptor Extension · Developer Tools 4,000+ 957 ★ 478KiB

icon

Angular Inspector Extension · Developer Tools 4,000+ 8 ★ 270KiB

icon

Angular state inspector Extension · Developer Tools 4,000+ 64 ★ 36.35KiB

icon

ng-inspect for AngularJS Extension · Developer Tools 4,000+ 87 ★ 585KiB

icon

Angular watchers Extension · Developer Tools 4,000+ 54 ★ 335KiB

icon

Angular BatScanner Extension · Developer Tools 4,000+ 9 ★ 513KiB

icon

ng-inspect for Angular(1.x/4+/Ivy) Extension · Developer Tools 4,000+ 16 ★ 63.24KiB

icon

Angular Gauntlets Extension · Developer Tools 4,000+ 5 ★ 9.55KiB

icon

LiveReload Extension · Developer Tools 4,000+ 808 ★ 60.78KiB

icon

Angular Chrome Extension · Developer Tools 4,000+ 9 ★ 605KiB

icon

Vue.js devtools Extension · Developer Tools 4,000+ 2131 ★ 2.57MiB

icon

Node.js V8 --inspector Manager (NiMV3) Extension · Developer Tools 4,000+ 97 ★ 582KiB

icon

Vue Component Finder Extension · Developer Tools 4,000+ 7 ★ 14.28KiB

icon

Vue.js devtools (beta) Extension · Developer Tools 4,000+ 149 ★ 2.54MiB

icon

Xdebug helper Extension · Developer Tools 4,000+ 429 ★ 70.13KiB

icon

jQuery Debugger Extension · Developer Tools 4,000+ 110 ★ 88.52KiB

icon

Redux DevTools Extension · Developer Tools 4,000+ 726 ★ 1.2MiB

icon

Apollo Client Devtools Extension · Developer Tools 4,000+ 266 ★ 490KiB

icon

Swoosh Cookie and Local Storage Specialist Extension · Developer Tools 4,000+ 121 ★ 720KiB

User reviews

icon

Echo Chan (ID: 000000b26f9980d1) Voted 2 ★ - Updated 05/03/2019 ummmm,it cannot works...

icon

Chris Wang (ID: 0000008053f5089c) Voted 1 ★ - Updated 10/07/2018 angularjs + webpack is not work

icon

Brij bhan singh (ID: 000000357689b45f) Voted 5 ★ - Updated 07/29/2018 mm

icon

Mayur Chudasama (ID: 000000752b8d805e) Voted 2 ★ - Updated 10/13/2017 I cannot inspect watchers in ionic

icon

Martin Ligtenberg (ID: 000000c5d732807c) Voted 1 ★ - Updated 04/30/2017 Crashes the angular page