hsuanxyz / ionic-stepper

Steppers components for Ionic / ionic2
https://hsuanxyz.github.io/demo/ionic-stepper/
MIT License
51 stars 39 forks source link

Manual Envoke .nextStep() from Ionic Page #3

Open crippy opened 6 years ago

vbhanuc87 commented 6 years ago

Hi... Just wanted to check if there is a way to invoke nextStep from the methods in .ts backing component ?

shdehnavi commented 5 years ago

Hi... Just wanted to check if there is a way to invoke nextStep from the methods in .ts backing component ?

yes

stepupithub commented 4 years ago

import { IonicStepperComponent } from "ionic-stepper";

@ViewChild('stepper') stepper: IonicStepperComponent;
constructor() { }

setNextStep() { this.stepper.nextStep(); }

setCustomStep () { this.stepper.setStep(1); // nee to pass index of step }