Skip to content
Loading
How to show only 10 items using loop ? 
  • Abhilash J A
    @Midhun,
     
    I want to create a list of only 10 'View'.
  • Midhun Tp
    Hi Abhilash,
     
    Why don't you put an if condition inside click function to check whether the counter value is 10 or not? 
  • Shakti Singh Dulawat

    To break a loop, you have to return false in the loop callback.

    Returning true skips to the next iteration, equivalent to a continue in a normal loop.