[Vuejs]-How to get data by passing id into router from one vue component to another vue component through laravel axios

0👍

It seems the id you are passing in the router link is incorrect.

It should be :

<router-link :to="`/employee-profile/${employee.id}`">{{ employee.name }}</router-link>

Leave a comment