title: Are Angular Service Modules still required?
body: <p>In the angular docs, it lists the types of feature modules that one can implement. One of those being a service module.</p>
  
  <p><a href="https://angular.io/guide/module-types" rel="nofollow noreferrer">https://angular.io/guide/module-types</a></p>
  
  <p>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.</p>
  
  <pre><code>Injectable()
  export class MyService {}
  
  NgModule({
      providers: [MyService]
  })
  export class MyServicesModule {}
  
  NgModule({
      imports: [MyServicesModule]
  })
  export class AppModule {}
  </code></pre>
  
  <p>The newest Angular recommendation is to use the Injectable annotation, where you no longer need to list it in the providers definition. </p>
  
  <pre><code>Injectable({ providedIn: 'root'})
  export class MyService {}
  </code></pre>
  
  <p>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?</p>