DEV Community

Nhan Nguyen
Nhan Nguyen

Posted on

Angular 17 - New dev tools injector tree view

Another Angular 17 update is the release of a new DevTools panel called Injector Tree.

Image description

It's a good option to visualize both your element hierarchy and injector hierarchy, and it is accessible as a third tab in the Angular DevTools browser extension available for Chrome, Firefox, and Edge.

When we click on that tab, a tree view of all hierarchies shows up on the screen:

Image description

For a clearer view, we can check the option "hide framework injectors" to focus on our code:

Image description

Clicking on an injector (such as root) shows the list of all injectables/services available in that injector:

Image description

Notes: This new tab seems to be just getting started, and more information will be added later. Even though the Devtools is a browser extension, the Injector tree tab only works for apps using Angular v17+.


Let's get connected! You can find me on:

Top comments (0)