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

Ionic slider + loop + click event issue

$
0
0

@spanchal wrote:

hello friends,
I am using slider with dynamic data using property loop and autoplay

<ion-slides *ngIf="slides != null" loop="true"> <!-- autoplay="3000" loop="true" speed="800"-->
        <ion-slide *ngFor="let slide of slides; let i = index ;" >
            <img [src]="slide.BannerImage" (click)="fnGotoNewArrivalList(i)">
            <div class="con-box">
                <h2>{{slide.BannerName}}</h2>
            </div>
        </ion-slide>
    </ion-slides>

Button/Click does not work when going from last slide to first slide
slide next and slide previous both scenario.

NOTE - its working fine without loop property

thank you,

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



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