vue router use id with variable code example
Example: vue router link dynamic id
<div class="category-list" v-for="category in categories">
<router-link :to="{ name: 'category/edit', params: { categoryId: category.id }}">Home</router-link>
</div>