parent
ccb7bd0630
commit
c2d03e5e21
@ -52,8 +52,10 @@ Instead, it adds the declared route, `customers` to the `routes` array declared
|
|||||||
|
|
||||||
<code-example language="typescript" header="src/app/app-routing.module.ts">
|
<code-example language="typescript" header="src/app/app-routing.module.ts">
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: 'customers',
|
{
|
||||||
loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) }
|
path: 'customers',
|
||||||
|
loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule)
|
||||||
|
}
|
||||||
];
|
];
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
||||||
@ -73,10 +75,14 @@ The `orders` route, specified with the `--route` option, is added to the `routes
|
|||||||
|
|
||||||
<code-example language="typescript" header="src/app/app-routing.module.ts">
|
<code-example language="typescript" header="src/app/app-routing.module.ts">
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: 'customers',
|
{
|
||||||
loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) },
|
path: 'customers',
|
||||||
{ path: 'orders',
|
loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule)
|
||||||
loadChildren: () => import('./orders/orders.module').then(m => m.OrdersModule) }
|
},
|
||||||
|
{
|
||||||
|
path: 'orders',
|
||||||
|
loadChildren: () => import('./orders/orders.module').then(m => m.OrdersModule)
|
||||||
|
}
|
||||||
];
|
];
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user