For consistency and to reduce the length of our imports as well as prepare for better scalability, let's also create an index.ts file in app/modules/core/services, which will export a const collection of our services as well as export these services (in an alphabetical order to keep things tidy):
import { DatabaseService } from './database.service';import { LogService } from './log.service';export const PROVIDERS: any[] = [ DatabaseService, LogService];export * from './database.service';export * from './log.service';
We will follow a similar pattern of the organization throughout the book.