1
1
import { Component } from "@angular/core" ;
2
2
3
- import { FirstComponentActionBar } from "./action-bar/action-bar-first.component" ;
4
- import { SecondComponentActionBar } from "./action-bar/action-bar-second.component" ;
3
+ import { FirstActionBarComponent } from "./action-bar/action-bar-first.component" ;
4
+ import { SecondActionBarComponent } from "./action-bar/action-bar-second.component" ;
5
5
6
6
import { AppComponent } from "./template/app.component" ;
7
7
8
8
import { FirstComponent } from "./router/router-outlet/first.component" ;
9
9
import { SecondComponent } from "./router/router-outlet/second.component" ;
10
- import { NavigationComponent , NavigationSubRoutes } from "./router/router-outlet/navigation.component" ;
10
+ import { NavigationComponent , NAVIGATION_SUBROUTES } from "./router/router-outlet/navigation.component" ;
11
11
import { LazyNavigationComponent } from "./router/lazy-module-navigation/lazy-navigation.component" ;
12
12
13
13
import { BindingComponent } from "./binding/binding-page.component" ;
@@ -22,7 +22,11 @@ import { ListViewMultipleTemplatesComponent } from "./list-view/multiple-templat
22
22
import { ListPickerMainPageComponent } from "./list-picker/list-picker-main-page.component" ;
23
23
import { ListPickerComponent } from "./list-picker/list-picker.component" ;
24
24
25
- import { ModalTest , ModalTestWithPushStrategy , ModalContent } from "./modal/modal-dialogs/modal-dialog.component" ;
25
+ import {
26
+ ModalTestComponent ,
27
+ ModalTestWithPushStrategyComponent ,
28
+ ModalContentComponent
29
+ } from "./modal/modal-dialogs/modal-dialog.component" ;
26
30
import { ModalViewMainPageComponent } from "./modal/modal-view-main-page.component" ;
27
31
import { LazyLoadModalComponent } from "./modal/lazy/lazy-load-modal.component" ;
28
32
@@ -36,12 +40,14 @@ import { SegmentedBarIssue649Component } from "./segmented-bar/issue-649.compone
36
40
37
41
import { DatePickerMainPageComponent } from "./date-picker/date-picker-main-page.component" ;
38
42
import { DatePickerIssue324Component } from "./date-picker/issue-324.component" ;
43
+ import { ButtonMainPageComponent } from "./button/button-main-page.component" ;
44
+ import { ButtonTextAlignmentComponent } from "./button/button-text-alignment.component" ;
39
45
40
46
import { MainComponent } from "./main/main-page-router-outlet" ;
41
47
42
48
export const routableComponents = [
43
49
MainComponent ,
44
- ModalContent ,
50
+ ModalContentComponent ,
45
51
AppComponent ,
46
52
47
53
NavigationComponent ,
@@ -50,8 +56,8 @@ export const routableComponents = [
50
56
FirstComponent ,
51
57
SecondComponent ,
52
58
53
- FirstComponentActionBar ,
54
- SecondComponentActionBar ,
59
+ FirstActionBarComponent ,
60
+ SecondActionBarComponent ,
55
61
56
62
BindingComponent ,
57
63
@@ -66,8 +72,8 @@ export const routableComponents = [
66
72
ListPickerMainPageComponent ,
67
73
68
74
ModalViewMainPageComponent ,
69
- ModalTest ,
70
- ModalTestWithPushStrategy ,
75
+ ModalTestComponent ,
76
+ ModalTestWithPushStrategyComponent ,
71
77
LazyLoadModalComponent ,
72
78
73
79
TabViewComponent ,
@@ -78,55 +84,102 @@ export const routableComponents = [
78
84
SegmentedBarIssue649Component ,
79
85
DatePickerMainPageComponent ,
80
86
DatePickerIssue324Component ,
87
+ ButtonMainPageComponent ,
88
+ ButtonTextAlignmentComponent ,
81
89
] ;
82
90
83
91
// Set isNavigatable: true if the page is a mian page to other sub pages
84
92
export const routes = [
85
- { path : '' , component : MainComponent , data : { title : "" } } ,
86
- { path : '' , component : ModalContent , data : { title : "" } } ,
87
- { path : ' template' , component : AppComponent , data : { title : "Template" , isNavigatable : true } } ,
93
+ { path : "" , component : MainComponent , data : { title : "" } } ,
94
+ { path : "" , component : ModalContentComponent , data : { title : "" } } ,
95
+ { path : " template" , component : AppComponent , data : { title : "Template" , isNavigatable : true } } ,
88
96
89
- { path : 'router' , component : NavigationComponent , children : NavigationSubRoutes , data : { title : "Router" , isNavigatable : true } } ,
90
- { path : 'lazy-router' , component : LazyNavigationComponent , data : { title : "Lazy Router" , isNavigatable : true } } ,
97
+ {
98
+ path : "router" ,
99
+ component : NavigationComponent ,
100
+ children : NAVIGATION_SUBROUTES ,
101
+ data : { title : "Router" , isNavigatable : true }
102
+ } ,
103
+ { path : "lazy-router" , component : LazyNavigationComponent , data : { title : "Lazy Router" , isNavigatable : true } } ,
91
104
92
- { path : ' first' , component : FirstComponent , data : { title : "First" , isNavigatable : true } } ,
93
- { path : ' second' , component : SecondComponent , data : { title : "Second" , isNavigatable : true } } ,
105
+ { path : " first" , component : FirstComponent , data : { title : "First" , isNavigatable : true } } ,
106
+ { path : " second" , component : SecondComponent , data : { title : "Second" , isNavigatable : true } } ,
94
107
95
- { path : 'first-action-bar' , component : FirstComponentActionBar , data : { title : "ActionBar1" , isNavigatable : true } } ,
96
- { path : 'second-action-bar' , component : SecondComponentActionBar , data : { title : "ActionBar2" , isNavigatable : true } } ,
108
+ {
109
+ path : "first-action-bar" ,
110
+ component : FirstActionBarComponent ,
111
+ data : { title : "ActionBar1" , isNavigatable : true }
112
+ } ,
113
+ {
114
+ path : "second-action-bar" ,
115
+ component : SecondActionBarComponent ,
116
+ data : { title : "ActionBar2" , isNavigatable : true }
117
+ } ,
97
118
98
- { path : ' binding' , component : BindingComponent , data : { title : "Binding" , isNavigatable : true } } ,
119
+ { path : " binding" , component : BindingComponent , data : { title : "Binding" , isNavigatable : true } } ,
99
120
100
- { path : 'ListViewExamples' , component : ListViewMainPageComponent , data : { title : "ListViewExamples" , isNavigatable : true } } ,
121
+ {
122
+ path : "ListViewExamples" ,
123
+ component : ListViewMainPageComponent ,
124
+ data : { title : "ListViewExamples" , isNavigatable : true }
125
+ } ,
101
126
{ path : "ListViewExamples/commonTemplate" , component : ListViewComponent , data : { title : "commonTemplate" } } ,
102
127
{ path : "ListViewExamples/customTemplate" , component : ListViewControlComponent , data : { title : "customTemplate" } } ,
103
128
{ path : "listView/asyncPipeTemplate" , component : ListViewAsyncPipeComponent , data : { title : "asyncPipeTemplate" } } ,
104
- { path : "listView/nestedTemplate" , component : ListViewWithNestedTemplateComponent , data : { title : "nestedTemplate" } } ,
105
- { path : "listView/multiple-templates" , component : ListViewMultipleTemplatesComponent , data : { title : "multipleTemplates" } } ,
106
-
107
- { path : 'listPicker' , component : ListPickerMainPageComponent , data : { title : "ListPicker" , isNavigatable : true } } ,
108
- { path : 'listPicker/list-picker' , component : ListPickerComponent , data : { title : "ListPicker" , isNavigatable : false } } ,
129
+ {
130
+ path : "listView/nestedTemplate" ,
131
+ component : ListViewWithNestedTemplateComponent ,
132
+ data : { title : "nestedTemplate" }
133
+ } ,
134
+ {
135
+ path : "listView/multiple-templates" ,
136
+ component : ListViewMultipleTemplatesComponent ,
137
+ data : { title : "multipleTemplates" }
138
+ } ,
139
+ {
140
+ path : "listPicker" ,
141
+ component : ListPickerMainPageComponent ,
142
+ data : { title : "ListPicker" , isNavigatable : true }
143
+ } ,
144
+ {
145
+ path : "listPicker/list-picker" ,
146
+ component : ListPickerComponent ,
147
+ data : { title : "ListPicker" , isNavigatable : false }
148
+ } ,
149
+ { path : "modal" , component : ModalViewMainPageComponent , data : { title : "Modals" , isNavigatable : true } } ,
150
+ { path : "modal/modal-dialogs" , component : ModalTestComponent , data : { title : "modal" } } ,
151
+ {
152
+ path : "modal/modal-dialogs-push" ,
153
+ component : ModalTestWithPushStrategyComponent ,
154
+ data : { title : "modal(onPush)" }
155
+ } ,
156
+ { path : "modal/lazy" , component : LazyLoadModalComponent , data : { title : "modal(lazy)" } } ,
109
157
110
- { path : 'modal' , component : ModalViewMainPageComponent , data : { title : "Modals" , isNavigatable : true } } ,
111
- { path : 'modal/modal-dialogs' , component : ModalTest , data : { title : "modal" } } ,
112
- { path : 'modal/modal-dialogs-push' , component : ModalTestWithPushStrategy , data : { title : "modal(onPush)" } } ,
113
- { path : 'modal/lazy' , component : LazyLoadModalComponent , data : { title : "modal(lazy)" } } ,
158
+ { path : "tab-view" , component : TabViewComponent , data : { title : "tab-view" , isNavigatable : true } } ,
114
159
115
- { path : 'tab-view' , component : TabViewComponent , data : { title : "tab-view" , isNavigatable : true } } ,
160
+ { path : "nav-options" , component : NavigationOptionsComponent , data : { title : "nav-options" , isNavigatable : true } } ,
161
+ { path : "nav-info" , component : NavigationInfoComponent , data : { title : "nav-info" } } ,
116
162
117
- { path : 'nav-options' , component : NavigationOptionsComponent , data : { title : "nav-options" , isNavigatable : true } } ,
118
- { path : 'nav-info' , component : NavigationInfoComponent , data : { title : "nav-info" } } ,
163
+ {
164
+ path : "segmented-bar" ,
165
+ component : SegmentedBarMainPageComponent ,
166
+ data : { title : "SegmentedBar" , isNavigatable : true }
167
+ } ,
168
+ { path : "segmented-bar/issue-649" , component : SegmentedBarIssue649Component , data : { title : "issue-649" } } ,
119
169
120
- { path : 'segmented-bar' , component : SegmentedBarMainPageComponent , data : { title : "SegmentedBar " , isNavigatable : true } } ,
121
- { path : 'segmented-bar /issue-649' , component : SegmentedBarIssue649Component , data : { title : "issue-649 " } } ,
170
+ { path : "date-picker" , component : DatePickerMainPageComponent , data : { title : "DatePicker " , isNavigatable : true } } ,
171
+ { path : "date-picker /issue-324" , component : DatePickerIssue324Component , data : { title : "issue-324 " } } ,
122
172
123
- { path : 'date-picker' , component : DatePickerMainPageComponent , data : { title : "DatePicker" , isNavigatable : true } } ,
124
- { path : 'date-picker/issue-324' , component : DatePickerIssue324Component , data : { title : "issue-324" } } ,
173
+ { path : "button" , component : ButtonMainPageComponent , data : { title : "Button" , isNavigatable : true } } ,
174
+ {
175
+ path : "button/button-text-alignment" ,
176
+ component : ButtonTextAlignmentComponent ,
177
+ data : { title : "button-text-alignment" }
178
+ } ,
125
179
126
180
// Needed for AoT compilation
127
181
{
128
182
path : "lazy" ,
129
183
loadChildren : "./lazy/lazy.module#LazyModule"
130
184
} ,
131
185
] ;
132
-
0 commit comments