TransitionManager | UI-Router
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransitionManager

This class:

  • Takes a blank transition object and adds all the hooks necessary for it to behave like a state transition.

  • Runs the transition, returning a chained promise which:

    • transforms the resolved Transition.promise to the final destination state.
    • manages the rejected Transition.promise, checking for Dynamic or Redirected transitions
  • Registers a handler to update global $state data such as "active transitions" and "current state/params"

  • Registers view hooks, which maintain the list of active view configs and sync with/update the ui-views

  • Registers onEnter/onRetain/onExit hooks which delegate to the state's hooks of the same name, at the appropriate time

  • Registers eager and lazy resolve hooks

Hierarchy

  • TransitionManager

Index

Constructors

Properties

$q: any
$state: StateService
$transitions: any
$urlRouter: UrlRouter
$view: any
enterExitHooks: EnterExitHooks
resolveHooks: ResolveHooks
transition: Transition
treeChanges: TreeChanges
viewHooks: ViewHooks

Methods

  • registerUpdateGlobalState(): void
  • runTransition(): Promise<any>
  • updateUrl(): void

Generated using TypeDoc