Class Transition

public
Defined in: packages/@ember/-internals/routing/lib/system/transition.ts:1
Module: @ember/routing

data public

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.

debugPreviousTransition

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.

from public

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.

promise public

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.

to public

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.

© 2020 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
https://api.emberjs.com/ember/3.25/classes/Transition/properties