Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip step or conditional step #349

Open
roy-de-kleijn opened this issue Jul 4, 2021 · 1 comment
Open

Skip step or conditional step #349

roy-de-kleijn opened this issue Jul 4, 2021 · 1 comment

Comments

@roy-de-kleijn
Copy link

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

@madoar
Copy link
Owner

madoar commented Jul 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants