Interface ResolvePolicy

Example:

// Fetched when the resolve's state is being entered.// Wait for the promise to resolve.var policy1 = { when: "LAZY", async: "WAIT" }
// Fetched when the Transition is starting.// Do not wait for the returned promise to resolve.// Inject the raw promise/valuevar policy2 = { when: "EAGER", async: "NOWAIT" }

The policy for a given Resolvable is merged from three sources (highest priority first):

1) Individual resolve definition

2) State definition

3) Global default

Example:

// Wait for an Observable to emit one item.// Since `wait` is not specified, it uses the `wait`// policy defined on the state, or the global default// if no `wait` policy is defined on the statevar myResolvablePolicy = { async: "RXWAIT" }

Example:

Resolves for main and main.home are fetched at the same time when the transition starts.
This happens earlier in the lifecycle than when states are entered.
All of the main and main.home resolves are fetched as soon as possible.