-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathapp-routing.module.ts
134 lines (123 loc) · 3.79 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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 { ActionBarVisibilityAlwaysComponent } from "./page-router-outlet/action-bar-visibility-always.component";
import { ActionBarVisibilityAutoComponent } from "./page-router-outlet/action-bar-visibility-auto.component"
import { ActionBarVisibilityNeverComponent } from "./page-router-outlet/action-bar-visibility-never.component"
import { NestedPageComponent } from "./page-router-outlet/nested-page.component"
import { TabItemBindingComponent } from "./tab-view/tab-item-binding.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-visibility-always",
component: ActionBarVisibilityAlwaysComponent,
children: [{
path: "nested",
outlet: "nested",
component: NestedPageComponent
}]
},
{
path: "action-bar-visibility-never",
component: ActionBarVisibilityNeverComponent,
children: [{
path: "nested",
outlet: "nested",
component: NestedPageComponent
}]
},
{
path: "action-bar-visibility-auto",
component: ActionBarVisibilityAutoComponent,
children: [{
path: "nested",
outlet: "nested",
component: NestedPageComponent
}]
},
{
path: "action-bar-dynamic",
component: ActionBarDynamicItemsComponent,
},
{
path: "action-bar-extension",
component: ActionBarExtensionComponent,
},
{
path: "tab-item-binding",
component: TabItemBindingComponent,
},
{
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,
ActionBarVisibilityAlwaysComponent,
ActionBarVisibilityNeverComponent,
ActionBarVisibilityAutoComponent,
NestedPageComponent,
TabItemBindingComponent,
ListComponent,
NgForComponent,
NgForOfComponent,
NgIfNoLayoutComponent,
NgIfInbetweenComponent,
NgIfElseComponent,
NgIfThenElseComponent,
NgIfSubsequent,
ContentViewComponent,
];
@NgModule({
imports: [ NativeScriptRouterModule.forRoot(routes) ],
exports: [ NativeScriptRouterModule ],
})
export class AppRoutingModule { }