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

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.

主站蜘蛛池模板: 泰和县| 惠安县| 汶川县| 高清| 栾城县| 东海县| 莱阳市| 株洲市| 樟树市| 怀来县| 澳门| 潢川县| 嘉黎县| 宁蒗| 镇赉县| 中西区| 海晏县| 宜宾县| 信阳市| 杭锦后旗| 新竹县| 龙门县| 苏尼特右旗| 河东区| 从江县| 南涧| 湘潭县| 哈密市| 社旗县| 阿合奇县| 百色市| 新源县| 龙井市| 虞城县| 牟定县| 文水县| 虹口区| 尼木县| 辽中县| 大同县| 安岳县|