-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathmodal-page-examples.module.ts
39 lines (36 loc) · 1.25 KB
/
modal-page-examples.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// tslint:disable:max-line-length
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule, NativeScriptRouterModule } from "nativescript-angular";
import { ModalPageExamplesComponent } from "./modal-page-examples.component";
import { SampleModalPageModuleExampleComponent } from "./sample-modal-page-module-example/sample-modal-page-module-example";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
import { ModalViewComponent } from "./sample-modal-page-module-example/modal-view";
export const routerConfig = [
{
path: "",
component: ModalPageExamplesComponent
},
{
path: "sample-modal-page",
component: SampleModalPageModuleExampleComponent,
data: { title: "Sample modal page" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
ModalPageExamplesComponent,
SampleModalPageModuleExampleComponent,
ModalViewComponent
],
entryComponents: [ModalViewComponent]
})
export class ModalPageExamplesModule {
constructor() { }
}