- NativeScript for Angular Mobile Development
- Nathan Walker Nathanael J. Anderson
- 152字
- 2021-07-02 18:41:47
Finalizing CoreModule
We can now modify our CoreModule to use what we have created. We will take this opportunity to also import the NativeScriptModule which our app will need to work with other NativeScript for Angular features which we will want accessible globally for our app. Since we know we will want those features, globally, we can also specify that they are exported so when we import and use our CoreModule, we won't need to worry about importing NativeScriptModule elsewhere. Here's what our CoreModule modifications should look like:
// nativescript
import { NativeScriptModule } from 'nativescript-angular/nativescript.module';
// angular
import { NgModule } from '@angular/core';
// app
import { PROVIDERS } from './services';
@NgModule({
imports: [
NativeScriptModule
],
providers: [
...PROVIDERS
],
exports: [
NativeScriptModule
]
})
export class CoreModule { }
We now have a good starting base for our CoreModule, the details of which we will implement in the following chapters.
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Spring 5.0 By Example
- Microsoft Application Virtualization Cookbook
- Vue.js 3.0源碼解析(微課視頻版)
- Java程序設計與計算思維
- Python王者歸來
- Hadoop+Spark大數據分析實戰
- Python數據分析(第2版)
- Java持續交付
- CouchDB and PHP Web Development Beginner’s Guide
- ArcGIS By Example
- Python Data Analysis Cookbook
- Learning Raspbian
- Learning YARN
- 從零開始學UI:概念解析、實戰提高、突破規則