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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -