TransitionPromise | @uirouter/angular
Options
Menu

Interface TransitionPromise

Hierarchy

Index

Properties

Promise: PromiseConstructor
__@toStringTag: "Promise"
transition: Transition

Methods

  • catch<TResult>(onrejected?: function | undefined | null): Promise<StateObject | TResult>
  • Attaches a callback for only the rejection of the Promise.

  • Attaches a callback for only the rejection of the Promise.

    Type parameters

    • TResult

    Parameters

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<StateObject | TResult>

    :

    A Promise for the completion of the callback.


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

  • Attaches callbacks for the resolution and/or rejection of the Promise.

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • onfulfilled: Optional  function | undefined | null
      :

      The callback to execute when the Promise is resolved.

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult1 | TResult2>

    :

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


Generated using TypeDoc