Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Strange behaviour of on-slide-change slidebox

$
0
0

@lfelisiak wrote:

Hi guys im having a problem that i cant figure out, i just will copy the relevants parts of code.

Problem:

When i go to the #1 slide the previous event does actually work but the console.log are launched twice times, this happens sometimes and sometimes only on the first time you run the app. Can anyone give me a clue of whats going on ?

CODE

 $scope.slideValidate = function($index){
console.log('slideHasChanged $index=' + $index);
if($index === 0){
	// first box
}
if($index === 1){
	//second box
	$ionicSlideBoxDelegate.previous();
}
if($index === 2){
	// third box
}

};

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>