There is a component that uses v-for inside:
<div v-for="flower in flowers" class="catalog"> <p id="flow"><img :src="flower.photo" alt="#" i></p> <center><button id="podr" class="green small round outline" @click="item()">ПОДРОБНЕЕ</button></center> <div id="name1"> <h6 id="zag">{{ flower.name }}</h6> <p id="price1">{{ flower.price }} ₽</p> <input type="hidden" :value="flower.id"> </div> </div> The number of elements is not known in advance; There is a data block:
data () { return { flowers: [] } } There is also a dynamic route to which you need to transfer id to get detailed information. I can’t approach the flower.id parameter in flower.id way to transfer it to the route in the future.
Maybe have any ideas? Or does someone know how to do this?