- NativeScript for Angular Mobile Development
- Nathan Walker Nathanael J. Anderson
- 93字
- 2021-07-02 18:41:47
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.
推薦閱讀
- UI圖標(biāo)創(chuàng)意設(shè)計
- Mastering Visual Studio 2017
- Learning RabbitMQ
- BeagleBone Media Center
- Architecting the Industrial Internet
- Windows Presentation Foundation Development Cookbook
- Java面向?qū)ο蟪绦蛟O(shè)計
- C# and .NET Core Test Driven Development
- Raspberry Pi Robotic Blueprints
- Natural Language Processing with Python Quick Start Guide
- Mastering jQuery Mobile
- 軟件工程與UML案例解析(第三版)
- 趣學(xué)數(shù)據(jù)結(jié)構(gòu)
- PHP程序設(shè)計高級教程
- C++標(biāo)準(zhǔn)庫(第2版)