Skip to content

Commit e938bae

Browse files
docs: update lazyloading syntax to CLI 9
1 parent 7cb7371 commit e938bae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/angular.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ npm i -g @angular/cli
1818
ng --version
1919
```
2020

21-
This guide uses Angular CLI 7.0.3.
21+
This guide uses Angular CLI 9.0.0.
2222

2323
After that run:
2424

@@ -46,19 +46,19 @@ const routes: Routes = [
4646
{
4747
path: '',
4848
pathMatch: 'full',
49-
loadChildren: './index/index.module#IndexModule'
49+
loadChildren: () => import('./index/index.module').then(m => m.IndexModule)
5050
},
5151
{
5252
path: 'about',
53-
loadChildren: './about/about.module#AboutModule'
53+
loadChildren: () => import('./about/about.module').then(m => m.AboutModule)
5454
},
5555
{
5656
path: 'example',
57-
loadChildren: './example/example.module#ExampleModule'
57+
loadChildren: () => import('./example/example.module').then(m => m.ExampleModule)
5858
},
5959
{
6060
path: 'media',
61-
loadChildren: './media/media.module#MediaModule'
61+
loadChildren: () => import('./media/media.module').then(m => m.MediaModule)
6262
}
6363
];
6464

0 commit comments

Comments
 (0)