maiyaporn / angular2-wizard

Angular2 - Form Wizard Component
118 stars 119 forks source link

is possible to control next/prev button from one wizard to another wizard #43

Open Uma-Shankar opened 6 years ago

Uma-Shankar commented 6 years ago

How to restrict wizard from one to another wizard? In my case: If next is clicked. I want to save form in server side. If form data are invalid mean i need to stop the wizard from one to another. [isValid] is only restrict before click next. But in my case its not useful.

atiqul commented 4 years ago

You can use goToStep(step) method, step is WizardStepComponent. You can find your step in WizardComponent.steps which returns an array of step.