var AccordionApp = angular.module("Carouselapp", ['ui.bootstrap']);
function CarouselDemoCtrl($scope) {
$scope.myInterval = 50000;
$scope.slides = [
{ image1: 'IMAGES/AngularJS.jpg', image2: 'IMAGES/BigData.jpg' },
{ image1: 'IMAGES/Mainframe.png', image2: 'IMAGES/DOTNET.png' },
{ image1: 'IMAGES/AngularJS.jpg', image2: 'IMAGES/BigData.jpg' },
{ image1: 'IMAGES/Mainframe.png', image2: 'IMAGES/DOTNET.png' }
];
}
<!Doctype html />
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js"></script>
<script src="Scripts/ui-bootstrap-tpls.min.js"></script>
<script src="example.js"></script>
<link href="CSS/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>
<div >
<carousel interval="myInterval">
<slide ng-repeat="slide in slides" active="slide.active">
<table>
<tr>
<td>
<img ng-src="{{slide.image1}}" style="margin:auto;">
</td>
<td><img ng-src="{{slide.image2}}" style="margin:auto;">
</td>
</tr>
</table>
</slide>
</carousel>
</div>
</body>
</html>
Hi, My carousel using bootstrap is working fine when i am using a seperate page for it. but when i am including it in my index page its not working. I feel all my slides are active thats why its showing all the images. Pls let me know how to solve this. I have spent 2 days on this already. Thanks The below snippet is working but when i using ng-include in div> tag and plave this in another html it stops working.. Pls help