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

Ionic + Swiper onSlideChange Method

$
0
0

Dear Community,

I use in my HTML:
<ion-button class=“intro-button” (click)=“start()” [hidden]="!disablePrev">Überspringen
<ion-button class=“intro-button” (click)=“prev()” [hidden]=“disablePrev”>Zurück

and in my TS:
disablePrev: boolean = true;
onSlideChange() {
const activeSlide = this.swiper.swiperRef.realIndex;
this.disablePrev = activeSlide === 0;
}

When i click on the button my Skip Button (Überspringen) get hidden but if i do with touch nothing change.

Why dont change the button btw the renderer component if i use touch?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48979

Trending Articles



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