A helper module for AngularUI Router, which allows you to define your states as an object tree.
bower install angular-ui-router.stateHelperor
npm install angular-ui-router.statehelper
- Add a dependency on
ui.router.stateHelperin your app module.
// NOTE: when using child states with views you should make sure that its parent has a template containing a `ui-view` directive.angular;
- keepOriginalNames (default false)
- siblingTraversal (default false)
Dot notation name conversion
By default, all state names are converted to use ui-router's dot notation (e.g.
This can be disabled by calling
.state() with options
options.keepOriginalNames = true.
Child states may optionally receive a reference to the name of the previous state (if available) and the next state (if available) in order to facilitate sequential state traversal as in the case of building wizards or multi-part forms. Enable this by setting
options.siblingTraversal = true.
angular;console // undefinedconsole // 'resume.experience'console // 'resume.contactInfo'console // 'resume.education'console // 'resume.experience'console // undefined
.setNestedState was used instead of
.state. In 1.2.0
setNestedState was deprecated in favour of
.state, and chaining was added. This makes it easier to switch between