- 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.
推薦閱讀
- 數(shù)據(jù)科學(xué)實(shí)戰(zhàn)手冊(R+Python)
- 跟小海龜學(xué)Python
- VMware vSphere 6.7虛擬化架構(gòu)實(shí)戰(zhàn)指南
- Instant RubyMotion App Development
- 軟件測試技術(shù)指南
- C++新經(jīng)典
- 深入分布式緩存:從原理到實(shí)踐
- Node Cookbook(Second Edition)
- WCF技術(shù)剖析(卷1)
- INSTANT Lift Web Applications How-to
- Analytics for the Internet of Things(IoT)
- 軟件測試項(xiàng)目實(shí)戰(zhàn)之功能測試篇
- Node.js核心技術(shù)教程
- 軟件定義存儲:原理、實(shí)踐與生態(tài)
- Go Programming Cookbook(Second Edition)