devmark / angular-slick-carousel

Angular directive for slick-carousel
http://devmark.github.io/angular-slick-carousel/
MIT License
353 stars 125 forks source link

nextSlide parameter is always `undefined` #82

Closed artuska closed 8 years ago

artuska commented 8 years ago

This is my Sick config:

var carouselConfig = {
    speed: 500,
    infinite: true,
    draggable: false,
    slidesToShow: 1,
    slidesToScroll: 1,
    initialSlide: 0,
    lazyLoad: 'ondemand',
    event: {
        afterChange: function (e, slick, currentSlide, nextSlide) {
            console.log(nextSlide);
        }
    }
};

nextSlide parameter always returns undefined no matter of the Slick configuration, no matter if lazy loading is enabled or disabled... its just always is undefined.

'Cos it is not a big deal — I can calculate next slide from the currentSlide parameter, but I'm just saying :)

devmark commented 8 years ago

take a look 3.1.6