Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

Ion-slides switch slide on ng-click

$
0
0

@fillah wrote:

Hey guys.

Since ion-slide-box will be removed in the next update of ionic, i'm trying to achieve the same thing with my ion-slides.

I've created a ng-repeat inside my ion-slide where the data is being displayed and added a ng-click="nextSlide()" to it. But when i click on it, nothing happens. I want to click on an item and then switch to the next slide instead of clicking the bullets in the bottom of the page.

<ion-slides options="{pagination: false}" slider="data.slider">
            <ion-slide-page>
                <div class="list">
                    <div class="item" ng-repeat="cat in cats" ng-click="nextSlide()">
                         {{cat.title}}
                   </div>
             </div>
         </ion-slide-page>

        <ion-slide-page>
           <p>hello</p>
        </ion-slide-page>
  </ion-slides>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



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