0

Explain the difference between a module injector and an element injector in Angular.

author
subina kallyani
hard
0
29

Answer
  • Module injector → provides services at module/application level.
  • Element injector → provides services at component/directive level.
    This means you can have different service instances per component tree

Click to Reveal Answer

Tap anywhere to see the solution

Revealed

Comments0
    Explain the difference between a module injector and an element injector in Angular. - dependency injection | EBAT