是否可以在角度2路由中使用部分静态参数?我要解释一下:
现在我使用经典参数,如下所示:
const routes: Routes = [
{
path: ':type/fine.html',
pathMatch: 'full',
redirectTo: ':type/fine'
}
Run Code Online (Sandbox Code Playgroud)
但我可以使用这样的东西:
const routes: Routes = [
{
path: 'static-:type/fine.html',
pathMatch: 'full',
redirectTo: 'static-:type/fine'
}
Run Code Online (Sandbox Code Playgroud)
能够完全重定向到static-{{parameterValue}}/fine.
可能吗?