A
A
Andy Oker2021-03-23 19:00:01
Vue.js
Andy Oker, 2021-03-23 19:00:01

How to pass data object through router-link?

There is such a design

<router-link :to="'/card/'+item._source.id"
   class="catalog__card"
   v-for="item in items"
  :key="item._source.id"
>

</router-link>


I want to pass an item object to the card that the route leads to.
Can it be implemented via router-link ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2021-03-23
@yarkov Vue.js

https://router.vuejs.org/ru/guide/essentials/passi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question