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

Interface TransitionPromise

Hierarchy

Index

Properties

Methods

Properties

Promise: PromiseConstructor
transition: Transition

Methods

  • catch(onrejected?: function): Promise<State>
  • Attaches a callback for only the rejection of the Promise.

  • catch(onrejected?: function): Promise<State>
  • then<TResult>(onfulfilled?: function, onrejected?: function): Promise<TResult>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

  • then<TResult>(onfulfilled?: function, onrejected?: function): Promise<TResult>
  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult

    Parameters

    • onfulfilled Optional: function
      :

      The callback to execute when the Promise is resolved.

        • (value: State): TResult | PromiseLike<TResult>
        • Parameters

          Returns TResult | PromiseLike<TResult>

    • onrejected Optional: function
      :

      The callback to execute when the Promise is rejected.

        • (reason: any): TResult | PromiseLike<TResult>
        • Parameters

          • reason: any

          Returns TResult | PromiseLike<TResult>

    Returns Promise<TResult>

    :

    A Promise for the completion of which ever callback is executed.


  • Type parameters

    • TResult

    Parameters

    • onfulfilled Optional: function
        • (value: State): TResult | PromiseLike<TResult>
        • Parameters

          Returns TResult | PromiseLike<TResult>

    • onrejected Optional: function
        • (reason: any): void
        • Parameters

          • reason: any

          Returns void

    Returns Promise<TResult>


Generated using TypeDoc