2017-07-04 10:58:20 -04:00
|
|
|
// #docplaster
|
|
|
|
// #docregion app-routing-module
|
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
|
|
|
|
|
|
|
// #docregion const-routes
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'customers',
|
2019-05-17 14:31:48 -05:00
|
|
|
loadChildren: () => import('./customers/customers.module').then(mod => mod.CustomersModule)
|
2017-07-04 10:58:20 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'orders',
|
2019-05-17 14:31:48 -05:00
|
|
|
loadChildren: () => import('./orders/orders.module').then(mod => mod.OrdersModule)
|
2017-07-04 10:58:20 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: '',
|
|
|
|
pathMatch: 'full'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
// #enddocregion const-routes
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [
|
|
|
|
RouterModule.forRoot(routes)
|
|
|
|
],
|
|
|
|
exports: [RouterModule],
|
|
|
|
providers: []
|
|
|
|
})
|
|
|
|
export class AppRoutingModule { }
|
|
|
|
// #enddocregion app-routing-module
|