Consistency and standards

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.

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.