This is probably a piece of cake for you math gurus. The prevSlide goes back fine 3-2-1-3-2... etc. Regardless of the point of entry. But the nexSlide starts out 1-2-3 and then it just 2-3-2-3...I'm sure it's my math
$scope.currentIndex = 0;
$scope.setCurrentSlideIndex = function (index) {
$scope.currentIndex = index;
};
$scope.isCurrentSlideIndex = function (index) {
return $scope.currentIndex === index;
};
$scope.prevSlide = function () {
$scope.currentIndex = ($scope.currentIndex > 0) ? --$scope.currentIndex : $scope.slides.length - 1;
};
$scope.nextSlide = function () {
$scope.currentIndex = ($scope.currentIndex < $scope.slides.length -1) ? ++$scope.currentIndex : 1;
};
Help!