[Vuejs]-VueJS props are not passing to component via router-link

0👍

As seen in Vue Router :

https://router.vuejs.org/guide/essentials/passing-props.html

Props are passed by the params field, so like this :

<router-link :to="{ name: 'time', params: { tax: 123, site: site_key }}">Add New Request</router-link>

for a much more insight on your problem, please include your router.js file.

Leave a comment