@@ -29,6 +29,10 @@ import { TabViewComponent } from "./tab-view/tab-view.component";
29
29
30
30
import { NavigationOptionsComponent } from "./navigation-options/navigation-options.component" ;
31
31
import { NavigationInfoComponent } from "./navigation-options/navigation-info.component" ;
32
+
33
+ import { SegmentedBarMainPageComponent } from "./segmented-bar/segmented-bar-main-page.component"
34
+ import { SegmentedBarIssue649Component } from "./segmented-bar/issue-649.component"
35
+
32
36
import { MainComponent } from "./main/main-page-router-outlet" ;
33
37
34
38
export const routableComponents = [
@@ -65,26 +69,28 @@ export const routableComponents = [
65
69
66
70
NavigationOptionsComponent ,
67
71
NavigationInfoComponent ,
72
+ SegmentedBarMainPageComponent ,
73
+ SegmentedBarIssue649Component ,
68
74
] ;
69
75
70
76
// Set isNavigatable: true if the page is a mian page to other sub pages
71
77
export const routes = [
72
78
{ path : '' , component : MainComponent , data : { title : "" } } ,
73
79
{ path : '' , component : ModalContent , data : { title : "" } } ,
74
- { path : 'template' , component : AppComponent , data : { title : "Template" , isNavigatable : true } } ,
80
+ { path : 'template' , component : AppComponent , data : { title : "Template" , isNavigatable : true } } ,
75
81
76
- { path : 'router' , component : NavigationComponent , children : NavigationSubRoutes , data : { title : "Router" , isNavigatable : true } } ,
77
- { path : 'lazy-router' , component : LazyNavigationComponent , data : { title : "Lazy Router" , isNavigatable : true } } ,
82
+ { path : 'router' , component : NavigationComponent , children : NavigationSubRoutes , data : { title : "Router" , isNavigatable : true } } ,
83
+ { path : 'lazy-router' , component : LazyNavigationComponent , data : { title : "Lazy Router" , isNavigatable : true } } ,
78
84
79
- { path : 'first' , component : FirstComponent , data : { title : "First" , isNavigatable : true } } ,
80
- { path : 'second' , component : SecondComponent , data : { title : "Second" , isNavigatable : true } } ,
85
+ { path : 'first' , component : FirstComponent , data : { title : "First" , isNavigatable : true } } ,
86
+ { path : 'second' , component : SecondComponent , data : { title : "Second" , isNavigatable : true } } ,
81
87
82
- { path : 'first-action-bar' , component : FirstComponentActionBar , data : { title : "ActionBar1" , isNavigatable : true } } ,
83
- { path : 'second-action-bar' , component : SecondComponentActionBar , data : { title : "ActionBar2" , isNavigatable : true } } ,
88
+ { path : 'first-action-bar' , component : FirstComponentActionBar , data : { title : "ActionBar1" , isNavigatable : true } } ,
89
+ { path : 'second-action-bar' , component : SecondComponentActionBar , data : { title : "ActionBar2" , isNavigatable : true } } ,
84
90
85
- { path : 'binding' , component : BindingComponent , data : { title : "Binding" , isNavigatable : true } } ,
91
+ { path : 'binding' , component : BindingComponent , data : { title : "Binding" , isNavigatable : true } } ,
86
92
87
- { path : 'ListViewExamples' , component : ListViewMainPageComponent , data : { title : "ListViewExamples" , isNavigatable : true } } ,
93
+ { path : 'ListViewExamples' , component : ListViewMainPageComponent , data : { title : "ListViewExamples" , isNavigatable : true } } ,
88
94
{ path : "ListViewExamples/commonTemplate" , component : ListViewComponent , data : { title : "commonTemplate" } } ,
89
95
{ path : "ListViewExamples/customTemplate" , component : ListViewControlComponent , data : { title : "customTemplate" } } ,
90
96
{ path : "listView/asyncPipeTemplate" , component : ListViewAsyncPipeComponent , data : { title : "asyncPipeTemplate" } } ,
@@ -93,18 +99,21 @@ export const routes = [
93
99
{ path : 'listPicker' , component : ListPickerMainPageComponent , data : { title : "ListPicker" , isNavigatable : true } } ,
94
100
{ path : 'listPicker/list-picker' , component : ListPickerComponent , data : { title : "ListPicker" , isNavigatable : false } } ,
95
101
96
- { path : 'modal' , component : ModalViewMainPageComponent , data : { title : "Modals" , isNavigatable : true } } ,
102
+ { path : 'modal' , component : ModalViewMainPageComponent , data : { title : "Modals" , isNavigatable : true } } ,
97
103
{ path : 'modal/modal-dialogs' , component : ModalTest , data : { title : "modal" } } ,
98
104
{ path : 'modal/modal-dialogs-push' , component : ModalTestWithPushStrategy , data : { title : "modal(onPush)" } } ,
99
105
{ path : 'modal/lazy' , component : LazyLoadModalComponent , data : { title : "modal(lazy)" } } ,
100
106
101
107
{ path : 'tab-view' , component : TabViewComponent , data : { title : "tab-view" , isNavigatable : true } } ,
102
108
103
- { path : 'nav-options' , component : NavigationOptionsComponent , data : { title : "nav-options" , isNavigatable : true } } ,
109
+ { path : 'nav-options' , component : NavigationOptionsComponent , data : { title : "nav-options" , isNavigatable : true } } ,
104
110
{ path : 'nav-info' , component : NavigationInfoComponent , data : { title : "nav-info" } } ,
105
111
112
+ { path : 'segmented-bar' , component : SegmentedBarMainPageComponent , data : { title : "SegmentedBar" , isNavigatable : true } } ,
113
+ { path : 'segmented-bar/issue-649' , component : SegmentedBarIssue649Component , data : { title : "issue-649" } } ,
114
+
106
115
// Needed for AoT compilation
107
- {
116
+ {
108
117
path : "lazy" ,
109
118
loadChildren : "./lazy/lazy.module#LazyModule"
110
119
} ,
0 commit comments