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

Calling a specific part of a function on an ionSlideDidChange Event

$
0
0

@jqx23 wrote:

Right now I have a function which itself contains other functions, and then a for loop inside that function like so

function example(param1, param2){
  function first(){
    //manipulates params
  }
  function second(){
    for(var i = 0; i < 5; i++){
      if (the slide is changed)
         //manipulate parameters somehow
    }    
  }
}

Is there any way for me to right some sort of function like slides.on(ionSlideDidChange, //do something)? I know I can use (ionSlideDidChange)=“function()” in the html code but I specifically need to use this function inside the above nested function.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71286

Trending Articles



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