In the previous post, we saw on how to make a service
available globally by declaring the @Injectable providedIn: 'root'. We can
also declare module-level services using ProvidedIn, in this post we shall see
on how to declare module-level service using @Injectable
To limit the scope of a service to a module we need to specify the module in the providedIn instead of ‘root’. In the below code the HellpService is made available only to the HelloModule, the service is not available to any other Modules in the Application.
To limit the scope of a service to a module we need to specify the module in the providedIn instead of ‘root’. In the below code the HellpService is made available only to the HelloModule, the service is not available to any other Modules in the Application.

