- 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.
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- Getting Started with React
- Vue.js 2 and Bootstrap 4 Web Development
- 64位匯編語言的編程藝術
- UI智能化與前端智能化:工程技術、實現方法與編程思想
- Amazon S3 Cookbook
- RESTful Java Web Services(Second Edition)
- Scratch3.0趣味編程動手玩:比賽訓練營
- 一步一步跟我學Scratch3.0案例
- 官方 Scratch 3.0 編程趣味卡:讓孩子們愛上編程(全彩)
- CryENGINE Game Programming with C++,C#,and Lua
- Python實戰指南:手把手教你掌握300個精彩案例
- Mastering Magento Theme Design
- Slick2D Game Development