@@ -9,6 +9,9 @@ import { DashboardComponent } from './pages/dashboard';
99import { Dashboard2Component } from './pages/dashboard2' ;
1010import { FormsComponent } from './pages/forms' ;
1111
12+ // @ts -ignore
13+ // @ts -ignore
14+ // @ts -ignore
1215@NgModule ( {
1316 imports : [
1417 RouterModule . forRoot (
@@ -20,11 +23,11 @@ import { FormsComponent } from './pages/forms';
2023 { path : 'forms' , component : FormsComponent , pathMatch : 'full' } ,
2124 { path : 'charts' , component : ChartsComponent , pathMatch : 'full' } ,
2225 { path : 'components' , component : ComponentsComponent , pathMatch : 'full' } ,
23- { path : '**' , redirectTo : '/pages /404' } ,
26+ { path : '**' , redirectTo : '/ypages /404' } ,
2427 ] } , // add 'canActivate: AuthGuard' for catching unauth users
25- { path : 'ui' , loadChildren : './pages/ui/ui.module#UIModule' } ,
26- { path : 'maps' , loadChildren : './pages/maps/maps.module#MapsModule' } ,
27- { path : 'pages' , loadChildren : './pages/pages/pages.module#PagesModule' } ,
28+ { path : 'ui' , loadChildren : ( ) => import ( './pages/ui/ui.module' ) . then ( m => m . UIModule ) } ,
29+ { path : 'maps' , loadChildren : ( ) => import ( './pages/maps/maps.module' ) . then ( m => m . MapsModule ) } ,
30+ { path : 'pages' , loadChildren : ( ) => import ( './pages/pages/pages.module' ) . then ( m => m . PagesModule ) } ,
2831 { path : '**' , redirectTo : '/pages/404' } ,
2932 ] ,
3033 { useHash : true } ,
0 commit comments