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

Class TransitionHook

Hierarchy

  • TransitionHook

Index

Constructors

Properties

locals: any
mapHookResult: Function

Handles transition abort and transition redirect. Also adds any returned resolvables to the pathContext for the current pathElement. If the transition is rejected, then a rejected promise is returned here, otherwise undefined is returned.

Handles transition abort and transition redirect. Also adds any returned resolvables to the pathContext for the current pathElement. If the transition is rejected, then a rejected promise is returned here, otherwise undefined is returned.

resolveContext: ResolveContext

Methods

  • handleHookResult(hookResult: any): any
  • invokeStep(moreLocals: any): any
  • isSuperseded(): boolean
  • toString(): string
  • isRejection(hookResult: any): any
  • runSynchronousHooks(hooks: TransitionHook[], locals?: object, swallowExceptions?: boolean): Promise<any>
  • Given an array of TransitionHooks, runs each one synchronously and sequentially.

  • Given an array of TransitionHooks, runs each one synchronously and sequentially.

    Returns a promise chain composed of any promises returned from each hook.invokeStep() call

    Parameters

    • hooks: TransitionHook[]
    • locals Default value: object = {}
    • swallowExceptions Default value: boolean = false

    Returns Promise<any>


Generated using TypeDoc