@@ -5,10 +5,9 @@ import { SecondComponentActionBar } from "./action-bar/action-bar-second.compone
55
66import { AppComponent } from "./template/app.component" ;
77
8- import { FirstComponent } from "./router/router-outlet/first.component" ;
9- import { SecondComponent } from "./router/router-outlet/second.component" ;
10- import { NavigationComponent , NavigationSubRoutes } from "./router/router-outlet/navigation.component" ;
11- import { LazyNavigationComponent } from "./router/lazy-module-navigation/lazy-navigation.component" ;
8+ import { FirstComponent } from "./components/first.component" ;
9+ import { SecondComponent } from "./components/second.component" ;
10+ import { NavigationTestRouter , NavigationSubRoutes } from "./router/router-outlet" ;
1211
1312import { BindingComponent } from "./binding/binding-page" ;
1413
@@ -23,7 +22,6 @@ import { ListPickerComponent } from "./list-picker/list-picker";
2322
2423import { ModalTest , ModalTestWithPushStrategy , ModalContent } from "./modal/modal-dialogs/modal-dialog.component" ;
2524import { ModalViewMainPageComponent } from "./modal/modal-view-main-page" ;
26- import { LazyLoadModalComponent } from "./modal/lazy/lazy-load-modal.component" ;
2725
2826import { TabViewComponent } from "./tab-view/tab-view.component" ;
2927
@@ -36,8 +34,7 @@ export const routableComponents = [
3634 ModalContent ,
3735 AppComponent ,
3836
39- NavigationComponent ,
40- LazyNavigationComponent ,
37+ NavigationTestRouter ,
4138
4239 FirstComponent ,
4340 SecondComponent ,
@@ -59,7 +56,6 @@ export const routableComponents = [
5956 ModalViewMainPageComponent ,
6057 ModalTest ,
6158 ModalTestWithPushStrategy ,
62- LazyLoadModalComponent ,
6359
6460 TabViewComponent ,
6561
@@ -73,8 +69,7 @@ export const routes = [
7369 { path : '' , component : ModalContent , data : { title : "" } } ,
7470 { path : 'template' , component : AppComponent , data : { title : "Template" , isNavigatable : true } } ,
7571
76- { path : 'router' , component : NavigationComponent , children : NavigationSubRoutes , data : { title : "Router" , isNavigatable : true } } ,
77- { path : 'lazy-router' , component : LazyNavigationComponent , data : { title : "Lazy Router" , isNavigatable : true } } ,
72+ { path : 'router' , component : NavigationTestRouter , children : NavigationSubRoutes , data : { title : "Router" , isNavigatable : true } } ,
7873
7974 { path : 'first' , component : FirstComponent , data : { title : "First" , isNavigatable : true } } ,
8075 { path : 'second' , component : SecondComponent , data : { title : "Second" , isNavigatable : true } } ,
@@ -96,17 +91,10 @@ export const routes = [
9691 { path : 'modal' , component : ModalViewMainPageComponent , data : { title : "Modals" , isNavigatable : true } } ,
9792 { path : 'modal/modal-dialogs' , component : ModalTest , data : { title : "modal" } } ,
9893 { path : 'modal/modal-dialogs-push' , component : ModalTestWithPushStrategy , data : { title : "modal(onPush)" } } ,
99- { path : 'modal/lazy' , component : LazyLoadModalComponent , data : { title : "modal(lazy)" } } ,
10094
10195 { path : 'tab-view' , component : TabViewComponent , data : { title : "tab-view" , isNavigatable : true } } ,
10296
10397 { path : 'nav-options' , component : NavigationOptionsComponent , data : { title : "nav-options" , isNavigatable : true } } ,
10498 { path : 'nav-info' , component : NavigationInfoComponent , data : { title : "nav-info" } } ,
105-
106- // Needed for AoT compilation
107- {
108- path : "lazy" ,
109- loadChildren : "./lazy/lazy.module#LazyModule"
110- } ,
11199] ;
112100
0 commit comments