angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

UI-Router as a Step Router #3793

Closed jelling closed 4 years ago

jelling commented 4 years ago

This is a (check one box):

Feature Request

Is there any interest in adding sequential routing as a feature? I.e. most states can be entered at random, but in some cases like long running forms, the UI state tree looks like this:

ParentState
  Step1
  Step2
  Step3

For any parentState marked as a sequential section, UI-Router would support next and back methods such that the Step components would never need to know what the next step or previous step's UI state name.

The best argument I can think of against this feature is that it feels like an extension of ui-router. So if there is a way/plugin architecture for extending ui-router let me know and I will look into it.

jelling commented 4 years ago

Closing because this is handled via sibling transversal in the marklagendijk/ui-router.stateHelper