ResolvableLiteral | UI-Router
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResolvableLiteral

A plain object used to describe a Resolvable

These objects may be defined in [[StateDefinition.resolve]] blocks to declare async data that the state or substates require.

Hierarchy

  • ResolvableLiteral

Implemented by

Index

Properties

data: any

Pre-resolved value.

Pre-resolved value.

deps: any[]

The Dependency Injection tokens for dependencies of the resolveFn. The DI tokens are references to other Resolvables, or to global services.

The Dependency Injection tokens for dependencies of the resolveFn. The DI tokens are references to other Resolvables, or to global services.

policy: ResolvePolicy

A policy that defines when to invoke the resolve, and whether to wait for async and unwrap the data

A policy that defines when to invoke the resolve, and whether to wait for async and unwrap the data

resolveFn: Function

The function that returns one of:

The function that returns one of:

  • The resolved value (synchronously)
  • A promise for the resolved value
  • An Observable of the resolved value(s)

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.

token: any

The Dependency Injection token that will be used to inject/access the resolvable

The Dependency Injection token that will be used to inject/access the resolvable

Generated using TypeDoc