Sign in
Log inSign up

In angular, whenever I create a service and use it multiple components using dependency injection. Does service instantiated every time I use in multiple component?

Techesuraj's photo
Techesuraj
·Apr 30, 2018

If you use providers in service it will instantiate everytime when component get loaded, but if I use it in app.module, does service get instantiate everytime when component uses?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct