TransitionPromise | @uirouter/angularjs
Options
Menu

Interface TransitionPromise

Hierarchy

Index

Properties

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

Methods

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

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

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

    Parameters

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<StateObject>

    :

    A Promise for the completion of the callback.


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

    Type parameters

    • TResult

    Parameters

    • onrejected function
      :

      The callback to execute when the Promise is rejected.

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

          • reason any

          Returns TResult | PromiseLike<TResult>

    Returns Promise<StateObject | TResult>

    :

    A Promise for the completion of the callback.


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

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

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

  • then<TResult1, TResult2>(onfulfilled: function, onrejected: function): 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.

    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<StateObject>

    :

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


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

    Type parameters

    • TResult

    Parameters

    • onfulfilled function | undefined | null
      :

      The callback to execute when the Promise is resolved.

    • onrejected function
      :

      The callback to execute when the Promise is rejected.

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

          • reason any

          Returns TResult | PromiseLike<TResult>

    Returns Promise<StateObject | TResult>

    :

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


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

    Type parameters

    • TResult

    Parameters

    • onfulfilled function
      :

      The callback to execute when the Promise is resolved.

        • Parameters

          Returns TResult | PromiseLike<TResult>

    • onrejected: Optional  function | undefined | null
      :

      The callback to execute when the Promise is rejected.

    Returns Promise<TResult>

    :

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


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

    Type parameters

    • TResult1

    • TResult2

    Parameters

    • onfulfilled function
      :

      The callback to execute when the Promise is resolved.

        • (value: StateObject): TResult1 | PromiseLike<TResult1>
        • Parameters

          Returns TResult1 | PromiseLike<TResult1>

    • onrejected function
      :

      The callback to execute when the Promise is rejected.

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

          • reason any

          Returns TResult2 | PromiseLike<TResult2>

    Returns Promise<TResult1 | TResult2>

    :

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


Generated using TypeDoc