I am confused by the following documentation related to components vs services from other modules. https://angular.io/guide/sharing-ngmodules#using-components-vs-services-from-other-modules
I understand what the documentation is stating that typical usage of importing an NgModule is to gain access to shared Components, Pipes and Directives.
It also states the following: "Importing a module with services means that you will have a new instance of that service, which typically is not what you need (typically one wants to reuse an existing service). Use module imports to control service instantiation."
This is where I am confused. My understanding of the DI system (at least in an eagerly loaded application) is that if you import a shared module with a service listed as a provider, that service will eventually be registered in the root injector. The tree of NgModule imports is flattened during complilation and each service provider in registered in root injector.
The documentation here says "Importing a module with services means that you will have a new instance of that service". This is not necessarily true.
Am I missing something here? When they refer to module, do they not mean NgModule?