官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 宁乡县| 海淀区| 封丘县| 阳春市| 怀仁县| 高青县| 北票市| 尖扎县| 夏邑县| 闻喜县| 宣汉县| 南京市| 年辖:市辖区| 故城县| 赤壁市| 阳朔县| 西藏| 香河县| 息烽县| 洛川县| 县级市| 新晃| 阿拉善右旗| 青浦区| 浠水县| 故城县| 衡南县| 云浮市| 澳门| 华阴市| 怀远县| 巫溪县| 浑源县| 法库县| 永寿县| 大名县| 阿克陶县| 楚雄市| 罗平县| 炎陵县| 藁城市|