devmark / angular-slick-carousel

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

After getting the carousel data by Asynchronous call (Api) the width of slick track is not getting properly... #123

Open AnkitPandey007 opened 7 years ago

AnkitPandey007 commented 7 years ago

JS-

HttpServiceCall.getTestimonialList().then(function(data){ if (data.success == true) {
$scope.arrTestimonials = data.data; $scope.isTestimonialsLoded = true; $scope.slickConfig = { arrows: true, dots: false, infinite: true, autoplay: true, autoplaySpeed: 3500, speed: 1500, slidesToShow: 1, slidesToScroll: 1, fade: true, cssEase: 'linear', event: { beforeChange: function (event, slick, currentSlide, nextSlide) { }, afterChange: function (event, slick, currentSlide, nextSlide) { } } }; } });

HTML-

{{testimonial.description}}d

I am also using adaptiveHeight: true but not worked.

wrong output is like(slide1)- Hi, I like Testy foods

expexted output(slide1): Hi, I like Testy foods