-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathtrace-examples.module.ts
47 lines (43 loc) · 1.56 KB
/
trace-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
// tslint:disable:max-line-length
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { NativeScriptCommonModule } from "nativescript-angular/common";
import { NativeScriptFormsModule } from "nativescript-angular/forms";
import { TraceExamplesComponent } from "./trace-examples.component";
import { CustomTraceWriterExampleComponent } from "./custom-trace-writer/custom-tracewriter-example.component";
import { TraceSpecificCategoriesExampleComponent } from "./trace-specific-categories/trace-specific-categories-example.component";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
export const routerConfig = [
{
path: "",
component: TraceExamplesComponent
},
{
path: "custom-trace-writer",
component: CustomTraceWriterExampleComponent,
data: { title: "Custom trace writer" }
},
{
path: "trace-writer-categories",
component: TraceSpecificCategoriesExampleComponent,
data: { title: "Trace specific categories" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptCommonModule,
NativeScriptRouterModule,
NativeScriptFormsModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
TraceExamplesComponent,
CustomTraceWriterExampleComponent,
TraceSpecificCategoriesExampleComponent
]
})
export class TraceExamplesModule {
constructor() { }
}