Class Transition

public

A Transition is a thennable (a promise-like object) that represents an attempt to transition to another route. It can be aborted, either explicitly via abort or by attempting another transition while a previous one is still underway. An aborted transition can also be retry()d later.

Show:

Module: @ember/routing

Custom state can be stored on a Transition's data object. This can be useful for decorating a Transition within an earlier hook and shared with a later hook. Properties set on data will be copied to new transitions generated by calling retry on this transition.

Module: @ember/routing

In non-production builds, this property references the Transition that this Transition was derived from or undefined if this transition did not derive from another. In production builds, this property will not be present.

Module: @ember/routing

This property is a RouteInfo object that represents where transition originated from. It's important to note that a RouteInfo is a linked list and this property represents the head node of the list. In the case of an initial render, from will be set to null.

Module: @ember/routing

The Transition's internal promise. Calling .then on this property is that same as calling .then on the Transition object itself, but this property is exposed for when you want to pass around a Transition's promise, but not the Transition object itself, since Transition object can be externally aborted, while the promise cannot.

Module: @ember/routing

This property is a RouteInfo object that represents where the router is transitioning to. It's important to note that a RouteInfo is a linked list and this property represents the leafmost route.