0👍
Try this way once :
index.js
{
path: "List/profile/:id",
name: "Profile",
component: Profile
}
And in List.vue
<td>
<router-link :to="{ name: 'Profile', params: { user_id: user.id }}">{{
user.first_name
}}</router-link>
</td>
and in Profile.vue
get that id this.$route.params.user_id
- [Vuejs]-How to integrate multiple Vue Js components into a legacy system?
- [Vuejs]-Slice input vue js
Source:stackexchange.com