2👍
Use the params object to specify:
<router-link :to="{ name: 'mixtapesDetails', params: { id: data.id } }">
{{data.title}}
</router-link>
When id
is 1234
that should send you to /mixtapeDetails/1234
according to your router configuration.
- [Vuejs]-Vuex action changes component data
- [Vuejs]-Mixing WordPress eCommerce site with external login based Vue Frontend Best Practices
Source:stackexchange.com