maiyaporn / angular2-wizard

Angular2 - Form Wizard Component
118 stars 119 forks source link

No control when you go from step to another step #25

Open aadLannister opened 7 years ago

aadLannister commented 7 years ago

Hi, Thank's for your great works ! I think you should change your goToStep(step) function to check the current step state like this:

public goToStep(step: WizardStepComponent): void {
    if (!this.isCompleted && this.activeStep.isValid) {
      this.activeStep = step;
    }
} 

Thank's again.