MuaathAlhaddad
4/9/2020 - 4:38 PM

pass param through route-link (vuejs)

# 
<router-link :to="{name: 'customer-show', params: {id: customer.id}}"> Show Customers<router-link>


# router.js
  {
    path: '/customers/:id', 
    name: 'customer-show', 
    component: show
  }