import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { LayoutComponentComponent } from '../dashboard/layout-component/layout-component.component'; import { BidFinalReportComponent } from './bid-final-report/bid-final-report.component'; import { ReportComponent } from './report.component'; const routes: Routes = [ { path: '', component: LayoutComponentComponent, children: [ { path: '', redirectTo: '/dashboard', pathMatch: 'full' }, // { path: '', component: ReportComponent }, {path:'bid-final-report/:id', component:BidFinalReportComponent}, ] }, ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class ReportRoutingModule { }