diff --git a/src/carousel/carousel.js b/src/carousel/carousel.js index 3ebdd12264..0f096d5110 100644 --- a/src/carousel/carousel.js +++ b/src/carousel/carousel.js @@ -178,6 +178,11 @@ angular.module('ui.bootstrap.carousel', []) } else if (currentIndex > index) { currentIndex--; } + + //clean the currentSlide when no more slide + if (slides.length === 0) { + self.currentSlide = null; + } }; $scope.$watch('noTransition', function(noTransition) {