Check out example codes for "ionic add next button slides". It will help you in understanding the concepts better.

Code Example 1

import { IonSlides} from '@ionic/angular';


 export class HomePage {

      @ViewChild('mySlider')  slides: IonSlides;

      swipeNext(){
        this.slides.slideNext();
      }

    }
    
    
    <html>
     <ion-slides pager="true"  pager="false" #mySlider>

   <ion-slide>
   </ion-slide>

   <ion-slide>
   </ion-slide>

    <ion-button (click)="swipeNext()">Next</ion-button>

 </ion-slides>
 <html>

Learn ReactJs, React Native from akashmittal.com