| Start |
|---|
| Using ng-inspect chrome extension ng-inspect (opens new window) is a light weight Chrome extension for debugging AngularJS applications. When a node is selected from the elements panel, the scope related info is displayed in the ng-inspect panel. Exposes few global variables for quick access of Provides easy access to Services/Factories. Use Performance of the application can be monitored by counting the no.of scopes,isolateScopes, watchers and listeners on the application. Use Note: This extension will work only when the debugInfo is enabled. Download ng-inspect here (opens new window) |
| Basic debugging in markup Scope testing & output of model Sometimes it can help to see if there is a new scope to fix scoping issues. In the example you can see that outside of the ul-tag is the same scope ($id=2) and inside the An output of the model in a pre-tag is useful to see the current data of your model. The |
| Getting the Scope of element In an angular app everything goes around scope, if we could get an elements scope then it is easy to debug the angular app. How to access the scope of element: Getting the scope of the controller:- Another easy way to access a DOM element from the console (as jm mentioned) is to click on it in the 'elements' tab, and it automatically gets stored as $0. |
Read Article
https://develop.horje.com/learn/1434/reference