Skip to content

Commit

Permalink
fix(app-routing): use dynamic import for lazy loading routing modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Iske committed Mar 8, 2019
1 parent e6d4c5a commit 3752728
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ export const routes: Routes = [
},
{
path: 'home',
loadChildren: 'app/pages/home/home.module#HomeModule',
loadChildren: () => import('./pages/home/home.module').then(m => m.HomeModule),
},
{
path: 'about',
loadChildren: 'app/pages/about/about.module#AboutModule',
loadChildren: () => import('./pages/about/about.module').then(m => m.AboutModule),
},
{
path: 'contact',
loadChildren: 'app/pages/contact/contact.module#ContactModule',
loadChildren: () => import('./pages/contact/contact.module').then(m => m.ContactModule),
},
{
path: 'imprint',
loadChildren: 'app/pages/imprint/imprint.module#ImprintModule',
loadChildren: () => import('./pages/imprint/imprint.module').then(m => m.ImprintModule),
},
{
path: 'privacy',
loadChildren: 'app/pages/privacy/privacy.module#PrivacyModule',
loadChildren: () => import('./pages/privacy/privacy.module').then(m => m.PrivacyModule),
},
{
path: '**',
Expand Down

0 comments on commit 3752728

Please sign in to comment.