troch / angular-multi-step-form

An angular module for creating multi step forms / wizards
http://troch.github.io/angular-multi-step-form
ISC License
144 stars 44 forks source link

Is it possible to disable and enable a step from controller ? #48

Closed LearnGrowAndShare closed 8 years ago

LearnGrowAndShare commented 8 years ago

Hi,

Lets say we have 4 steps, and want only one step to be enable at a time, so is there any method exposed to acheive it ? Is it possible to disable and enable a step from Controller ?

troch commented 8 years ago

You can, but you have to take care of it yourself (by calling $setActiveIndex() rather than $nextStep(), only exposing valid controls to your users)