Hierarchical Injectors
Hierarchical Dependency Injectors
You learned the basics of Angular Dependency injection in the Dependency Injection guide.
Angular has a Hierarchical Dependency Injection system. There is actually a tree of injectors that parallel an application's component tree. You can reconfigure the injectors at any level of that component tree.
This guide explores this system and how to use it to your advantage.
Try the live example.
The injector tree
In the Dependency Injection guide, you learned how to configure a dependency injector and how to retrieve dependencies where you need them.
In fact, there