【发布时间】:2021-12-12 00:40:39
【问题描述】:
app-routing.module.ts
{ path: 'projectmodel/:projectmodelname/salespack', component: componentname}
所以在这里我想在导航时成为这样的 url(点击按钮我想导航到这个页面) 我试过这样
this.router.navigate(['/projectmodel', this.salesPackName, '/salespack'])
this.salesPackName = this.route.snapshot.paramMap.get('projectmodelname');
但它给出的页面未找到,即我给出了错误的 url。我在哪里失踪?我是角度的新手。任何帮助都会有帮助..
【问题讨论】:
标签: angular typescript