How can I set my title in the URL or routing module using Angular 2+? -


i need this

home.routing.module.ts

@ngmodule({   imports: [     routermodule.forchild([       { path: 'car/<any content>/:id', component: cardetailcomponent }     ]) ) 

i did quick check couldn't find examle this

it placeholder /:title, same of did id

routermodule.forchild([   { path: 'car/:title/:id', component: cardetailcomponent } ]) 

for redirecting on above url use routerlink directive appropriate parameter.

[routerlink]="['car', title, id]" 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -