-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathapp-routing.module.ts
89 lines (82 loc) · 2.33 KB
/
app-routing.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
import { NativeScriptRouterModule } from "nativescript-angular/router";
import { ActionBarDynamicItemsComponent } from "./action-bar/action-bar-dynamic-items.component";
import { ActionBarExtensionComponent } from "./action-bar/action-bar-extension.component";
import { ListComponent } from "./list.component";
import { NgForComponent } from "./ngfor.component";
import { NgForOfComponent } from "./ngforof.component";
import { NgIfNoLayoutComponent } from "./ngif-no-layout.component";
import { NgIfInbetweenComponent } from "./ngif-inbetween.component";
import { NgIfElseComponent } from "./ngifelse.component";
import { NgIfThenElseComponent } from "./ngif-then-else.component";
import { NgIfSubsequent } from "./ngif-subsequent.component";
import { ContentViewComponent } from "./content-view.component";
export const routes = [
{
path: "",
redirectTo: "/list",
pathMatch: "full"
},
{
path: "action-bar-dynamic",
component: ActionBarDynamicItemsComponent,
},
{
path: "action-bar-extension",
component: ActionBarExtensionComponent,
},
{
path: "list",
component: ListComponent,
},
{
path: "ngfor",
component: NgForComponent,
},
{
path: "ngforof",
component: NgForOfComponent,
},
{
path: "ngif-no-layout",
component: NgIfNoLayoutComponent,
},
{
path: "ngif-inbetween",
component: NgIfInbetweenComponent,
},
{
path: "ngifelse",
component: NgIfElseComponent,
},
{
path: "ngif-then-else",
component: NgIfThenElseComponent,
},
{
path: "ngif-subsequent",
component: NgIfSubsequent,
},
{
path: "content-view",
component: ContentViewComponent,
},
];
export const navigatableComponents = [
ActionBarDynamicItemsComponent,
ActionBarExtensionComponent,
ListComponent,
NgForComponent,
NgForOfComponent,
NgIfNoLayoutComponent,
NgIfInbetweenComponent,
NgIfElseComponent,
NgIfThenElseComponent,
NgIfSubsequent,
ContentViewComponent,
];
@NgModule({
imports: [ NativeScriptRouterModule.forRoot(routes) ],
exports: [ NativeScriptRouterModule ],
})
export class AppRoutingModule { }