Narendra Singh Rathore
1 min readFeb 15, 2019

--

What if we need a service in a feature module only* and not accessible to other modules that import it.

Can we implement such, as providing a service in providers array of ngModule or using provideIn, we are exposing service to other modules also that are importing it ?

Please let me know if you have any suggestion.

Regards.

--

--

Responses (2)