baianat / hooper

🎠 A customizable accessible carousel slider optimized for Vue
https://baianat.github.io/hooper/
MIT License
720 stars 131 forks source link

Custom counter N+1 #202

Open ghost opened 3 years ago

ghost commented 3 years ago

Hi guys! I tried to make custom slides counter like 1/4, 2/4... But simple ++ increment doesn't work. I do all things like in example "Custom controllers", where the counter starts from 0. I need to show 0 slide, but the counter must be 1. If i try to increment 0 in UpdateCarousel(), I got 1/4 on start, but it continue with values 5/4. I wasted so much time, tried different solutions, but have no effect. Any idea? Thx for help!