You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://angular.io/guide/hierarchical-dependency-injection#resolution-rules
Angular tries to find dependency in ElementInjector tree, if Angular doesn't find the provider in any ElementInjector hierarchies, it goes back to the element where the request originated and looks in the ModuleInjector hierarchy.
But UIView creates component with custom injector MergeInjector which firstly search token in ModuleInjector and then in ElementInjector.
For example, it will return service provided in root ModuleInjector, but it must return service provided in parent component or in lazy module (child module).
I think it should first look in all parents element injectors and only then in moduleInjector.
angular/src/directives/uiView.ts
Line 326 in 34c0efc
The text was updated successfully, but these errors were encountered: