All files / projects/requisition-management/src/app/pages requisition-management-routing.module.ts

29.41% Statements 5/17
100% Branches 0/0
0% Functions 0/12
50% Lines 4/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2825x 25x             25x                                   25x  
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
 
/**
 * routes for the requisition management
 *
 * visible for testing
 */
export const routes: Routes = [
  { path: 'approver', loadChildren: () => import('./approver/approver-page.module').then(m => m.ApproverPageModule) },
  { path: 'buyer', loadChildren: () => import('./buyer/buyer-page.module').then(m => m.BuyerPageModule) },
  {
    path: 'approver/:requisitionId',
    loadChildren: () =>
      import('./requisition-detail/requisition-detail-page.module').then(m => m.RequisitionDetailPageModule),
  },
  {
    path: 'buyer/:requisitionId',
    loadChildren: () =>
      import('./requisition-detail/requisition-detail-page.module').then(m => m.RequisitionDetailPageModule),
  },
];
 
@NgModule({
  imports: [RouterModule.forChild(routes)],
})
export class RequisitionManagementRoutingModule {}