thenikso / angular-flexslider

AngularJS directive to use Woothemes' FlexSlider jQuery plugin.
MIT License
189 stars 100 forks source link

Provide functionality to get current slide #66

Open vcatalano opened 9 years ago

vcatalano commented 9 years ago

There doesn't appear to be any function to get the current slide. It might be nice to expose a current slide key for the active slide in the slide collection.

c0nf1gur4t0r commented 9 years ago

I'm facing the same problem!! Could you help us on it?

aaronlifton commented 7 years ago

After looking at the source, you have to pass $slider to the before, after, start, etc. functions.

<flex-slider ... start="onSliderInit($slider)">

You could then use this to store the current slide.