@uirouter/rx/rx-async-policy | @uirouter/angular
Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @uirouter/rx/rx-async-policy

Index

Functions

Functions

RXWAIT

  • RXWAIT(resolveFnValue: Observable<any> | any): Promise<Observable<any>>
  • Determines the unwrapping behavior of asynchronous resolve values.

    • When an Observable is returned from the resolveFn, wait until the Observable emits at least one item. If any other value will be converted to an Observable that emits such value.
    • The Observable item will not be unwrapped.
    • The Observable stream itself will be provided when the resolve is injected or bound elsewhere.

    Example:

    The Transition will wait for the main.home resolve observables to emit their first value. Promises will be unwrapped and returned as observables before being provided to components.

    var mainState = {
      name: 'main',
      resolve: mainResolves, // defined elsewhere
      resolvePolicy: { async: RXWAIT },
    }

    Parameters

    • resolveFnValue: Observable<any> | any

    Returns Promise<Observable<any>>

Generated using TypeDoc