diff --git a/src/carousel/carousel.js b/src/carousel/carousel.js index f649ab73f8..90be0e7272 100644 --- a/src/carousel/carousel.js +++ b/src/carousel/carousel.js @@ -256,36 +256,13 @@ angular.module('ui.bootstrap.carousel', ['ui.bootstrap.transition']) -
-
- - Add Slide -
-
- Interval, in milliseconds: -
Enter a negative number to stop the interval. -
-
+ Interval, in milliseconds: +
Enter a negative number to stop the interval. function CarouselDemoCtrl($scope) { $scope.myInterval = 5000; - var slides = $scope.slides = []; - $scope.addSlide = function() { - var newWidth = 200 + ((slides.length + (25 * slides.length)) % 150); - slides.push({ - image: 'http://placekitten.com/' + newWidth + '/200', - text: ['More','Extra','Lots of','Surplus'][slides.length % 4] + ' ' - ['Cats', 'Kittys', 'Felines', 'Cutes'][slides.length % 4] - }); - }; - for (var i=0; i<4; i++) $scope.addSlide(); }