Optionaldata
Pre-resolved data.
Optionaldeps
The Dependency Injection tokens
This is an array of Dependency Injection tokens for the dependencies of the [[resolveFn]].
The DI tokens are references to other
Resolvables, or to other services from the native
DI system.
Optionaleager
Starts resolving at transition start instead of waiting until the state is entered.
Default: false
OptionalresolveA function which fetches the Resolvable's data
A function which returns one of:
This function will be provided the dependencies listed in [[deps]] as its arguments. The resolve system will asynchronously fetch the dependencies before invoking this function.
A Dependency Injection token
This Resolvable's DI token. The Resolvable will be injectable elsewhere using the token.
A plain object used to describe a [[Resolvable]]
These objects may be used in the [[StateDeclaration.resolve]] array to declare async data that the state or substates require.
Example: