-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathlocation-examples.module.ts
45 lines (42 loc) · 1.46 KB
/
location-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
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { LocationExamplesComponent } from "./location-examples.component";
import { BasicLocationExampleComponent } from "./basic-location-example/basic-location-example";
import { LocationMonitoringExampleComponent } from "./location-monitoring-example/location-monitoring-example";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
import { NativeScriptFormsModule } from "nativescript-angular/forms";
export const routerConfig = [
{
path: "",
component: LocationExamplesComponent
},
{
path: "location",
component: BasicLocationExampleComponent,
data: { title: "Location" }
},
{
path: "location-monitoring",
component: LocationMonitoringExampleComponent,
data: { title: "Location monitoring" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptFormsModule,
NativeScriptCommonModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
LocationExamplesComponent,
BasicLocationExampleComponent,
LocationMonitoringExampleComponent
]
})
export class LocationExamplesModule {
constructor() { }
}