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
Category:

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 }">
    {{user.name}}
  </router-link>

 

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>
 </router-link>

Riadh Rahmi

Senior Web Developer (Drupal & Laravel)

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

Web Posts

Search

Page Facebook