What does the Angular dependency injection hierarchy determine?
- A The order components render
- B Which provider is used, by resolving from the component injector upwards to root
- C The routing structure
- D The change detection order
Answer
Which provider is used, by resolving from the component injector upwards to root
The first matching provider found while walking up the injector tree wins, which is how component-scoped service instances are created.





