UI-Router Sample App (original) (raw)

Explore the Sample App for:

UI-Router 1.0 Sample Application

The sample app is intended to demonstrate a non-trivial ui-router application. It models the following


Visualizer

We’re using the State and Transition Visualizer to visually represent the current state tree, as well as the transitions between states. Explore how transitions work by hovering over them, and clicking to expand details (params and resolves).

Note how states are entered when they were previously not active, exited and re-_entered_ when parameters change, and how parent states whose parameters did not change are retained.
Each of these (exited, entered, retained) correspond to a Transition Hook.

Structure

The application utilizes ES6 modules.

There are many ways to structure a ui-router app. We aren’t super opinionated on application structure. Use what works for you. We organized ours in the following way:

UI-Router Patterns