diff --git a/src/directives/rn-carousel.js b/src/directives/rn-carousel.js index 9399643..77d46c3 100755 --- a/src/directives/rn-carousel.js +++ b/src/directives/rn-carousel.js @@ -372,12 +372,13 @@ }); } - if (iAttributes.rnCarouselControls!==undefined) { + if (iAttributes.rnCarouselControls!==undefined) { // dont use a directive for this + var canloop = angular.isDefined(tAttributes['rnCarouselControlsCanLoop']); var nextSlideIndexCompareValue = isRepeatBased ? repeatCollection.replace('::', '') + '.length - 1' : currentSlides.length - 1; var tpl = ''; iElement.parent().append($compile(angular.element(tpl))(scope)); }