docs: use dynamic import syntax in examples using lazy loading (#30563)

PR Close #30563
This commit is contained in:
Brandon
2019-05-17 14:31:48 -05:00
committed by Jason Aden
parent 9e946c9715
commit e1af6e3c70
8 changed files with 15 additions and 15 deletions

View File

@ -8,11 +8,11 @@ import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: 'customers',
loadChildren: './customers/customers.module#CustomersModule'
loadChildren: () => import('./customers/customers.module').then(mod => mod.CustomersModule)
},
{
path: 'orders',
loadChildren: './orders/orders.module#OrdersModule'
loadChildren: () => import('./orders/orders.module').then(mod => mod.OrdersModule)
},
{
path: '',