Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

navbar route with params vue

//if we have a route that admits params via url:
{path : '/page/:id?', name='page', component: Page},

  //we can edit the url to show the params we want like this:
<router-link :to="{name: 'page', params:{id: 'hello'}}"> </router-link>
 
PREVIOUS NEXT
Tagged: #navbar #route #params #vue
ADD COMMENT
Topic
Name
7+6 =