Hi,
I’ve just started to use v1.2 and the lovely swiper, but I ran into a strange issue.
I’m using this simple template within ion-view (actually I’m loading the data async and using ng-repeat)
Then problem starts that the pages slide to the second page from the end and the last page is only accessible by right swipe from the first page (I’m not using loop). This is with default options.
I could find any demos yet and the only thing I could do was to splice the first element in my data used by ng-repeat as the last.
Any ideas, what I might be doing wrong?
Thank you
I was just wondering… are you getting the slider into your scope as expected? I tried to set a watch but it didn’t seem to work. Guessing i’m doing something wrong. I don’t have the issue as you described, did you try to use some other startsettings?
Nevermind, answered my own question by using dot notation (without it it doesn’t seem to pick it up in the controller?). Nevertheless, maybe you could set the activeIndex to 0 via the options? Did you already try to do that?
var mySwipe={}; // globally visible objecct, can be used anywhere visible after initialized in below code
$scope.$watch('sliderWatcher',function(obj){
mySwipe=obj;
});
I tried the same code but height more than the viewport height. The page is not even scrollable now. I can’t see any content which is going beyond the page height. Does anyone had similar issue?