Could someone build me an example ui.bootstrap carousel that has a manual button for sliding, and include two divs of content? I cannot seem to figure out how to use carousels from just their example.
So far all that I have is the following. (showing just the controller and .html for cleanliness)
Controller
app.controller('RegisterController', function ($scope, $http, $location) {
$scope.cancel = function () {
$location.path('/');
};
$scope.myInterval = 5000; // I don't want timed-sliding. Only manual
var slides = $scope.slides = [];
$scope.addSlide = function () {
slides.push({
});
};
for (var i = 0; i < 4; i++) {
$scope.addSlide();
}
});
Registration.html
<div>
<carousel interval="myInterval">
<slide ng-repeat="slide in slides" active="slide.active">
<div>{{slide.content}}</div>
</slide>
<button>Next</button>
</carousel>
</div>
If someone could show me a basic example which includes the two following divs that'd be awesome!
slide 1
<div>
Name: <input type="text" />
</div>
slide 2
<div>
Password <input type="password" />
</div>