passing data routerlink vue code example
Example: route link prop vue
<router-link :to="{name: 'places', props: { someUnrelatedVar: 101 } }">Places, but 101</router-link>
<router-link :to="{name: 'places', props: { someUnrelatedVar: 101 } }">Places, but 101</router-link>