When I click on an icon, I want to navigate to a new page. Here's the code snippet:
this.prj = e.data.project_number;
this.router.navigateByUrl('/dashboard/ProjectShipment/634');
Instead of hardcoding the query parameter 000634
, I need to pass the value of this.prj
. The path structure is as follows:
const appRoutes: Routes = [
{
path: 'dB',
data: { title: 'Dashboard' },
children: [
{
path: 'ProjectShipment/:reportProject',
component: ProjectShipmentComponent,
data: { title: 'Project Shipment' },
}