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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -