import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { ContractComponent } from './contract/contract.component'; import { ContrectListComponent } from './contract/contrect-list/contrect-list.component'; import { EmployeeAssigingComponent } from './contract/employee-assiging/employee-assiging.component'; import { ContrectDtlComponent } from './contract/contrect-dtl/contrect-dtl.component'; import { CoustomerCashRecevingComponent } from './coustomer-cash-receving/coustomer-cash-receving.component'; import { CashRecevingListComponent } from './coustomer-cash-receving/cash-receving-list/cash-receving-list.component'; import { EmpCashReturningComponent } from './coustomer-cash-receving/emp-cash-returning/emp-cash-returning.component'; import { AssingEmployeeListComponent } from './contract/employee-assiging/assing-employee-list/assing-employee-list.component'; import { EmpCashReturnListComponent } from './coustomer-cash-receving/emp-cash-returning/emp-cash-return-list/emp-cash-return-list.component'; import { CashReceivingDetailComponent } from './coustomer-cash-receving/cash-receiving-detail/cash-receiving-detail.component'; import { CanDeactivateGuard } from '../../_guards/can-deactivate.guard'; import { DirectCashCollectionComponent } from './direct-cash-collection/direct-cash-collection.component'; import { DirectCashCollectionViewComponent } from './direct-cash-collection/direct-cash-collection-view/direct-cash-collection-view.component'; const routes: Routes = [ { path: 'contract', component: ContractComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Contrect' } }, { path: 'contract-edit', component: ContractComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Contrect' } }, { path: 'contract-detail', component: ContrectDtlComponent, data: { title: 'Contrect' } }, { path: 'contract-list', component: ContrectListComponent, data: { title: 'List' } }, { path: 'employee-assiging', component: EmployeeAssigingComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Add' } }, { path: 'employee-assiging-edit', component: EmployeeAssigingComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Edit' } }, { path: 'cash-receiving', component: CoustomerCashRecevingComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Cash' } }, { path: 'cash-receiving-edit', component: CoustomerCashRecevingComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'Cash' } }, { path: 'cash-receiving-detail', component: CashReceivingDetailComponent, data: { title: 'Cash' } }, { path: 'cash-receiving-list', component: CashRecevingListComponent, data: { title: 'List' } }, { path: 'cash-return', component: EmpCashReturningComponent, canDeactivate: [CanDeactivateGuard], data: { title: 'List' } }, { path: 'employee-assiging-list', component: AssingEmployeeListComponent, data: { title: 'List' } }, { path: 'employee-return-list', component: EmpCashReturnListComponent, data: { title: 'List' } }, { path: 'direct-cash-collection', component: DirectCashCollectionComponent, data: { title: 'List' } }, { path: 'direct-cash-collection-view', component: DirectCashCollectionViewComponent, data: { title: 'List' } }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class CoustomerRoutingModule { }