Ng1StateTransitionHook | angular-ui-router
Options
Menu

Interface Ng1StateTransitionHook

The signature for Angular 1 State Transition Hooks.

State hooks are registered as onEnter/onRetain/onExit in state declarations. State hooks can additionally be injected with $transition$ and $state$ for the current Transition and State in the transition.

Transition State Hooks are callback functions that hook into the lifecycle events of specific states during a transition. As a transition runs, it may exit some states, retain (keep) states, and enter states. As each lifecycle event occurs, the hooks which are registered for the event and that state are called (in priority order).

see

Hierarchy

  • Ng1StateTransitionHook

Callable

  • __call(...injectables: any[]): HookResult
  • The signature for Angular 1 State Transition Hooks.

  • The signature for Angular 1 State Transition Hooks.

    State hooks are registered as onEnter/onRetain/onExit in state declarations. State hooks can additionally be injected with $transition$ and $state$ for the current Transition and State in the transition.

    Transition State Hooks are callback functions that hook into the lifecycle events of specific states during a transition. As a transition runs, it may exit some states, retain (keep) states, and enter states. As each lifecycle event occurs, the hooks which are registered for the event and that state are called (in priority order).

    Parameters

    • ...injectables: Rest  any[]
      :

      list of services to inject into the function

    Returns HookResult

    :

    a HookResult which may alter the transition


Generated using TypeDoc