import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CustomerComponent } from './customer/customer.component';
import { EditCustomerComponent } from './edit-customer/edit-customer.component';
import { MenuCrmComponent } from './menu-crm/menu-crm.component';


const routes: Routes = [
  {
    path: '', component: MenuCrmComponent,
    children: [
      { path: 'customer', component: CustomerComponent },
      { path: 'customer/edit', component: EditCustomerComponent },
    ]
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CrmRoutingModule { }
