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

Class TransitionHook

Hierarchy

  • TransitionHook

Index

Constructors

Properties

locals: any
resolveContext: ResolveContext

Methods

  • handleHookResult(hookResult: any): Promise<any>
  • This method handles the return value of a Transition Hook.

  • This method handles the return value of a Transition Hook.

    A hook can return false, a redirect (TargetState), or a promise (which may resolve to false or a redirect)

    Parameters

    • hookResult: any

    Returns Promise<any>


  • invokeHook(moreLocals: any): any
  • isSuperseded(): boolean
  • toString(): string
  • 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