Skip to content
New issue

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

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

Already on GitHub? # to your account

Add StepId and StepIndex interfaces #102

Merged
merged 4 commits into from
Feb 19, 2018
Merged

Add StepId and StepIndex interfaces #102

merged 4 commits into from
Feb 19, 2018

Conversation

madoar
Copy link
Owner

@madoar madoar commented Feb 19, 2018

This PR adds a StepId and StepIndex interface to ng2-archwizard.
Both interfaces can be passed to the awGoToStep directive as input arguments.

The StepId interface enables the wizard to navigate to a step by its unique id, which can be set via the stepId input, which all wizard steps support now.

In addition this PR does a bit of refactoring, which includes moving some tests to new test files for the StepId, StepIndex and StepOffset interfaces.

Closes #83

- change the way the goToStep directive takes a step index
- add a way to navigate to a step by its unique id
- split goToStep directive tests into different test case files for for the StepOffset, StepIndex and StepId interfaces
- add StepId and StepIndex to the index.ts file
@madoar madoar merged commit cd08116 into master Feb 19, 2018
@madoar madoar deleted the add-step-id branch February 19, 2018 11:20
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant