In Angular's hierarchical dependency injection, the _____ is the first injector that is checked when trying to resolve a service dependency.

  • component injector
  • module injector
  • root injector
  • service injector
In Angular's hierarchical dependency injection system, the root injector is the first injector that is checked when trying to resolve a service dependency. The root injector provides a global scope for services, and if the service is not found there, Angular will progressively look for it in other injectors further down the hierarchy. Understanding this hierarchy is essential for managing service dependencies in Angular applications.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *