Is it possible to use a partial-static parameter in angular 2 routing? I'm going to explain:
Now I'm using classic parameter like this:
const routes: Routes = [
{
path: ':type/fine.html',
pathMatch: 'full',
redirectTo: ':type/fine'
}
But I would be able to use something like this:
const routes: Routes = [
{
path: 'static-:type/fine.html',
pathMatch: 'full',
redirectTo: 'static-:type/fine'
}
To be able to redirect exactly to static-{{parameterValue}}/fine.
Is it possible?
:typeparameter, it just sees that as a string, evaluating it exactly equal to ":type".