ng g m customers --route customers --module app.module
content_copy
const routes: Routes = [
{
path: 'customers',
loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule)
},
{
path: 'orders',
loadChildren: () => import('./orders/orders.module').then(m => m.OrdersModule)
},
{
path: '',
redirectTo: '',
pathMatch: 'full'
}
];
content_copy
ng generate module customers --route customers --module app.module
npm install ng-lazyload-image --save