- 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.
推薦閱讀
- The DevOps 2.3 Toolkit
- 大學計算機基礎實驗教程
- 自己動手寫Java虛擬機
- Hands-On Image Processing with Python
- Learning Flask Framework
- 技術領導力:程序員如何才能帶團隊
- Android 7編程入門經典:使用Android Studio 2(第4版)
- Visual Basic程序設計教程
- MySQL數據庫管理與開發實踐教程 (清華電腦學堂)
- Learning ArcGIS for Desktop
- HTML5+CSS3 Web前端開發技術(第2版)
- IBM Cognos Business Intelligence 10.1 Dashboarding cookbook
- Scratch·愛編程的藝術家
- OpenMP核心技術指南
- ASP.NET Web API Security Essentials