Skip to content

Transition provider

jeme edited this page Apr 5, 2013 · 5 revisions

The $stateTransitionProvider enables you to hook into the state machine and take more control over it. It enables you to cancel or redirect state transitions or simply run one or more functions when transitions occur.

Transition handlers are invoked with the $injector service, so you can inject services, values etc. that is registered with the $injector.

Additionally the following locals are provided:

  • $to: The state we are transitioning to.
  • $from: The state we are transitioning from.
  • $transition: Object used to reject or redirect.

Below is a list of topics covering parts of the State Transition Provider in detail.

Clone this wiki locally