-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathapplication-examples.module.ts
49 lines (46 loc) · 1.62 KB
/
application-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
40
41
42
43
44
45
46
47
48
49
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule, NativeScriptRouterModule } from "nativescript-angular";
import { ApplicationExamplesComponent } from "./application-examples.component";
import { AppCheckingTargetExampleComponent } from "./app-checking-target/app-checking-target.component";
import { AppUsingAndroidExampleComponent } from "./app-using-android-specifics/app-using-android-specifics.component";
import { AppUsingIosExampleComponent } from "./app-using-ios-specifics/app-using-ios-specifics.component";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
export const routerConfig = [
{
path: "",
component: ApplicationExamplesComponent
},
{
path: "check-target",
component: AppCheckingTargetExampleComponent,
data: { title: "Check The Target Platform" }
},
{
path: "using-android",
component: AppUsingAndroidExampleComponent,
data: { title: "Using Android Specifics" }
},
{
path: "using-ios",
component: AppUsingIosExampleComponent,
data: { title: "Using iOS Specifics" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
ApplicationExamplesComponent,
AppCheckingTargetExampleComponent,
AppUsingAndroidExampleComponent,
AppUsingIosExampleComponent
]
})
export class ApplicationExamplesModule {
constructor() { }
}