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

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.

主站蜘蛛池模板: 镇雄县| 十堰市| 安化县| 漳州市| 东阿县| 孟州市| 铜鼓县| 富民县| 长丰县| 镇安县| 饶河县| 兴文县| 贵州省| 邹城市| 田阳县| 富源县| 鄂托克旗| 含山县| 浦城县| 金沙县| 通江县| 洛浦县| 拜泉县| 额济纳旗| 许昌市| 奉节县| 洛宁县| 集贤县| 隆尧县| 海原县| 昌吉市| 榆树市| 灵丘县| 梧州市| 阳谷县| 平乡县| 印江| 南投市| 黄浦区| 宜君县| 高淳县|