From 05490d65014af0018dbba44aa9e32da513c38ec4 Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Tue, 21 Jan 2014 13:57:48 -0500 Subject: [PATCH] chore(carousel): update, simplify doc comment example --- src/carousel/carousel.js | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) 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']) -
-
-
    -
  • - - {{$index}}: {{slide.text}} -
  • -
- 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(); }