@@ -9,6 +9,9 @@ import { DashboardComponent } from './pages/dashboard';
9
9
import { Dashboard2Component } from './pages/dashboard2' ;
10
10
import { FormsComponent } from './pages/forms' ;
11
11
12
+ // @ts -ignore
13
+ // @ts -ignore
14
+ // @ts -ignore
12
15
@NgModule ( {
13
16
imports : [
14
17
RouterModule . forRoot (
@@ -20,11 +23,11 @@ import { FormsComponent } from './pages/forms';
20
23
{ path : 'forms' , component : FormsComponent , pathMatch : 'full' } ,
21
24
{ path : 'charts' , component : ChartsComponent , pathMatch : 'full' } ,
22
25
{ path : 'components' , component : ComponentsComponent , pathMatch : 'full' } ,
23
- { path : '**' , redirectTo : '/pages /404' } ,
26
+ { path : '**' , redirectTo : '/ypages /404' } ,
24
27
] } , // 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 ) } ,
28
31
{ path : '**' , redirectTo : '/pages/404' } ,
29
32
] ,
30
33
{ useHash : true } ,
0 commit comments