Angular 56 🅰️ Hierarchical Injectors
Angular’s dependency injection is not a flat container. It is a tree of injectors, and the tree mirrors the application’s structure — the component tree, the route tree, the lazy-loaded module tree. When a component asks for a dependency, the injector at that component tries to satisfy the request; if it cannot, it delegates to…