Works like a charm! Thanks @Shequeri! I suppose that’s what I get for copying over the code and not scrutinizing it properly! Now I just need to work with @jadurani solution and put some conditional disabling of the navigation for beginning and end.
Awesome! You have fun with the rest of the work bro.
@Shequeri as it is done in case I have 2 sliders in the same view, since I have the slider of photos of the product and the one of recommendations but if I give next to the slider of recommendations that is the one that has the before and next button but does not nothing only if I comment the slider above I do not know how to tell the function which slider to interpret
I do not know if I explain myself
Thanks, with this I solved it, the answer was higher
pager #slides
i get error ERROR in src/app/home/home.page.ts(13,17): error TS2304: Cannot find name ‘Slides’.
cna any one help me
i use this code on click button to move he next slide
export class HomePage {
@ViewChild('homeslides') slides: Slides;
goToNextSlide() {
this.slides.slideNext()
}
<ion-slides pager #slides>
<ion-slide>
.............
..............
</ion-slide>
</ion-slides>
Noticed, you didn’t import
import { Slides } from 'ionic-angular';
you need to use it this way since ionic 4:
import { IonSlides } from ‘@ionic/angular’;