app-routing.module.ts
{ path: 'projectmodel/:projectmodelname/salespack', component: componentname}
When navigating using a button click, I want the URL to be structured in the following way: I attempted to achieve this by using the following code:
this.router.navigate(['/projectmodel', this.salesPackName, '/salespack'])
this.salesPackName = this.route.snapshot.paramMap.get('projectmodelname');
However, I encountered a 'page not found' error, indicating that the URL I provided was incorrect. As a newcomer to Angular, I am unsure where I have made a mistake. Any assistance would be greatly appreciated.