- 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.
推薦閱讀
- Learn Scala Programming
- Python王者歸來
- 匯編語言程序設計(第3版)
- Java編程技術與項目實戰(第2版)
- Kotlin從基礎到實戰
- Extending Puppet(Second Edition)
- Learning Laravel's Eloquent
- Getting Started with React Native
- Building Wireless Sensor Networks Using Arduino
- Unity&VR游戲美術設計實戰
- Learning Material Design
- CodeIgniter Web Application Blueprints
- 大學計算機基礎實訓教程
- AI自動化測試:技術原理、平臺搭建與工程實踐
- MongoDB Cookbook