I'm currently developing an application that helps users manage maintenance tasks. I have successfully created a component to display all the data stored in an array of objects. However, I am facing a challenge in redirecting users to different pages when they click on each component, ensuring that the page displays corresponding component data. Despite trying to use Vue syntax $ {maintenance.id} for re-rendering purposes, I haven't been able to achieve the desired outcome.
<card-maintenance
v-for="manutenzione in manutenzioni"
:key="manutenzione.id"
:name="manutenzione.nome"
:data="manutenzione.data"
:durata="manutenzione.durata"
>
<router-link :to="`manutenzione/${manutenzione.id }`">More details</router-link>
</card-maintenance>