官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 纳雍县| 长治县| 汾阳市| 姜堰市| 北流市| 霍林郭勒市| 五河县| 浦东新区| 铜山县| 班戈县| 谷城县| 门源| 应城市| 泽州县| 拉萨市| 汉川市| 刚察县| 海伦市| 兴隆县| 平湖市| 贵定县| 广宗县| 丰顺县| 个旧市| 呼伦贝尔市| 义乌市| 淮滨县| 邓州市| 浏阳市| 吐鲁番市| 汝阳县| 德州市| 芜湖县| 三江| 都兰县| 昂仁县| 商南县| 洛隆县| 平泉县| 德惠市| 康定县|