drewjbartlett / vue-flickity

A Vue Slider / Carousel Component for Flickity.js
http://drewjbartlett.com/demos/vue-flickity/
374 stars 55 forks source link

selectedIndex() doesn't update #18

Closed homerjam closed 6 years ago

homerjam commented 7 years ago

I'm trying to display an image counter which gets the selectedIndex() via computed properties however the selectedIndex() is never updated. Should this plugin react to flickity events so Vue knows when to update the computed properties?

drewjbartlett commented 7 years ago

That might be worth implementing. If you wanna submit a PR for it, feel free!

MackieLee commented 7 years ago

maybe you used ES6 arrow function, if you did this, data will not update.

drewjbartlett commented 7 years ago

I think I see the issue here. It's under methods when it really should be under computed.

apansky commented 7 years ago

Hey, i have similiar question. Is there any way to know which slide is currently active? or are there any events when calling prev/next slide which i can listen to? thanx !

drewjbartlett commented 6 years ago

@apansky Flickity docs would be a better place for that probs.