Login
Remember
Register
Ask a Question
What are the types of injector hierarchies?
0
votes
asked
Sep 24, 2023
in
Angular
by
AdilsonLima
What are the types of injector hierarchies?
angularjs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 24, 2023
by
AdilsonLima
There are two types of injector hierarchies in Angular
ModuleInjector hierarchy:
It configure on a module level using an @NgModule() or @Injectable() annotation.
ElementInjector hierarchy:
It created implicitly at each DOM element. Also it is empty by default unless you configure it in the providers property on @Directive() or @Component().
...