Manav Pandya
What do you mean by Injector in Angular.
By Manav Pandya in Angular on Oct 12 2018
  • Laxmidhar Sahoo
    Nov, 2018 1

    There is one injector per Angular application. Normally you don't need to interact with it directly. The injector is key to making dependency injection work in Angular. Module methods such as factory, service, directive, etc. register these items with the injector. When you inject something (e.g., a service into a controller), the injector will lookup and then instantiate the service (if it wasn't instantiated already -- if it was, it will return the already-instantiated object).

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS