In the angular docs, it lists the types of feature modules that one can implement. One of those being a service module.
https://angular.io/guide/module-types
In earlier versions of Angular, you would create your service and list it in the providers array of the service NgModule. This NgModule would then be imported by the consuming application where the service will be provided in the application root injector.
Injectable()
export class MyService {}
NgModule({
providers: [MyService]
})
export class MyServicesModule {}
NgModule({
imports: [MyServicesModule]
})
export class AppModule {}
The newest Angular recommendation is to use the Injectable annotation, where you no longer need to list it in the providers definition.
Injectable({ providedIn: 'root'})
export class MyService {}
Therefore is there any point in creating a service module? Do you just create the services you want provided in the root injector using the above annotation and just import the service class directly and inject accoridngly?