ecmascript 6 - How to communicate current item in a v-for loop to sibling component -


i building image gallery app using vuejs , 1 component of gallery scrolling carousel have taken vuetify library. carousel looks -

<v-carousel :cycle="false" icon="none">   <v-carousel-item v-for="(image,index) in imagelist" :src="image"   :key="index">   </v-carousel-item> </v-carousel> 

when scroll through carousel, want current image being displayed, i.e. current src binding v-carousel-item communicated sibling component.

i having problems extracting current src javascript variable - once can figure out how other component.

please help.


Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -