n How to make router-link to path with params in Vuejs | CodimTh

Please Disable Your Browser Adblock Extension for our site and Refresh This Page!

our ads are user friendly, we do not serve popup ads. We serve responsible ads!

Refresh Page
Skip to main content
On . By CodimTh

Code snippet that can be used  to make router-link to path with params in Vuejs.

Example 1:

 <router-link :to="{ name:'users', params: { user_id: user.id }">


Example 2:

<router-link :to="'/articles/'+ article.id +'/edit'" tag="button" v-if="isRole('admin')" class="btn btn-success btn-sm mr-1">
                <i class="far fa-edit"></i>

Riadh Rahmi

Senior Web Developer PHP/Drupal & Laravel

I am a senior web developer, I have experience in planning and developing large scale dynamic web solutions especially in Drupal & Laravel.

Web Posts


Page Facebook