- 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.
推薦閱讀
- C# 7 and .NET Core Cookbook
- Facebook Application Development with Graph API Cookbook
- Deploying Node.js
- Intel Galileo Essentials
- Power Up Your PowToon Studio Project
- JavaScript+jQuery開發實戰
- Python機器學習編程與實戰
- The DevOps 2.5 Toolkit
- 基于SpringBoot實現:Java分布式中間件開發入門與實戰
- Apache Camel Developer's Cookbook
- SQL Server 2008 R2數據庫技術及應用(第3版)
- Python函數式編程(第2版)
- Building Business Websites with Squarespace 7(Second Edition)
- WCF編程(第2版)
- PhoneGap 3.x Mobile Application Development Hotshot