angular-slick-carousel
angular-slick-carousel copied to clipboard
After getting the carousel data by Asynchronous call (Api) the width of slick track is not getting properly...
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
wrong output is like(slide1)- Hi, I like Testy foods
expexted output(slide1): Hi, I like Testy foods