I want to inject a service to another service:
@Injectable() export class Dispatcher { } @Injectable() export class TodoStore { constructor(@Inject(
A providers array is available in @NgModule. You can provide your service by declaring your service in that array.
@NgModule({ declarations:[...], imports:[...], providers: [MyCustomService], bootstrap:[AppComponent] })