-
A "Component Tree" list of all of the Angular components and directives currently displayed on the pages. Actions taken on the page that alter the components included on the page or change the state of a component are highlighted and updated in the Component Tree in real time.
-
A list of properties and providers associated with the selected component or directive in the Component Tree. For example, you could select a form input and see the current form control status values (dirty, pristine, valid, etc.)
-
A "View Source" link associated with the selected component in the Component Tree, which when clicked will display the source code of the component's TypeScript file in the "Sources" tab of the Chrome Developers Tool.
-
An Injector Graph that displays a diagram of the dependenices injected into the currently selected component.
-
A Router Tree that displays a diagram of all of the routes defined in the application (using this feature does require injecting the Router in the root application component as explained on the Augury GitHub page).
-
A search tool for locating a desired component or directive element.
- Related to this, Augury adds a custom identifier attribute to each component and directive it displays in the Component Tree, with the id value denoting where the item exists in the hierarchy and its place amongst its sibling elements, making it easy to find, say, link 5 out of 12 in ComponentX
To me, this is a no-brainer, must-have tool for existing and would-be Angular 2 developers. Install the extension, and then take it for a spin with the "kitchen sink" demo application hosted by the Augury team.
No comments:
Post a Comment