Answers for "pass data router link vue"

4

route link prop vue

<router-link :to="{name: 'places', props: { someUnrelatedVar: 101 } }">Places, but 101</router-link>
Posted by: Guest on January-05-2021
0

vuejs pass data to router-view

// App.vue
<router-view name="bookBus" :model="model"></router-view>
// and use model as props in your view
Posted by: Guest on December-21-2020

Browse Popular Code Answers by Language