angular-archwizard icon indicating copy to clipboard operation
angular-archwizard copied to clipboard

Skip step or conditional step

Open roy-de-kleijn opened this issue 4 years ago • 1 comments

Hi,

In my wizard I have a step where the users needs to sign in. However, in some cases the user is already signed in.

1 - overview 2 - sign in 3 - address details

How can I achieve the following ?

Without being signed in: 1 -> 2 -> 3

User is signed in: 1 -> 3

I look forward to the answer, Roy

roy-de-kleijn avatar Jul 04 '21 20:07 roy-de-kleijn

I think the easiest solution is to define two wizards and (one with all three steps and the second one with only step 1 and 3) and then choose the one to be displayed according to the login status of your user.

If you want to implement both scenarios in one wizard you can try to use ngIf to disable/hide the second step based on the login status of the user.

madoar avatar Jul 18 '21 20:07 madoar