Quick Answer
Angular injector tree: when multiple providers for the same token exist at different levels (root, module, component), the injector closest to the consumer wins. The injector walks up the tree until it finds a provider. Use InjectionToken for non-class dependencies. forwardRef() resolves circular dependencies at decoration time. Multi providers (multi: true) merge multiple values for the same token into an array.
Answer
Angular uses hierarchical injectors. If the same token exists in multiple injectors, the nearest injector to the component wins.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.