-
-
Notifications
You must be signed in to change notification settings - Fork 295
/
Copy pathfile-system-examples.module.ts
63 lines (60 loc) · 1.77 KB
/
file-system-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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptModule, NativeScriptRouterModule } from "nativescript-angular";
import { FileSystemExamplesComponent } from "./file-system-examples.component";
import { CreateExampleComponent } from "./create/create.component";
import { DeleteExampleComponent } from "./delete/delete.component";
import { PathsExampleComponent } from "./paths/paths.component";
import { ReadExampleComponent } from "./read/read.component";
import { UpdateExampleComponent } from "./update/update.component";
import { TitleAndNavButtonModule } from "../directives/title-and-nav-button.module";
export const routerConfig = [
{
path: "",
component: FileSystemExamplesComponent
},
{
path: "create",
component: CreateExampleComponent,
data: { title: "Create" }
},
{
path: "delete",
component: DeleteExampleComponent,
data: { title: "Delete" }
},
{
path: "paths",
component: PathsExampleComponent,
data: { title: "Paths" }
},
{
path: "read",
component: ReadExampleComponent,
data: { title: "Read" }
},
{
path: "update",
component: UpdateExampleComponent,
data: { title: "Update" }
}
];
@NgModule({
schemas: [NO_ERRORS_SCHEMA],
imports: [
TitleAndNavButtonModule,
NativeScriptModule,
NativeScriptRouterModule,
NativeScriptRouterModule.forChild(routerConfig)
],
declarations: [
FileSystemExamplesComponent,
CreateExampleComponent,
DeleteExampleComponent,
PathsExampleComponent,
ReadExampleComponent,
UpdateExampleComponent
]
})
export class FetchExamplesModule {
constructor() { }
}