0 votes
in Angular by
Can I share services using modules?

1 Answer

0 votes
by

No, it is not recommended to share services by importing module. i.e Import modules when you want to use directives, pipes, and components only. The best approach to get a hold of shared services is through 'Angular dependency injection' because importing a module will result in a new service instance.

...