• Overview
@angular/router

mapToResolve

function

Maps an injectable class with a resolve function to an equivalent ResolveFn for use in a Route definition.

  
    function mapToResolve<T>(  provider: Type<Resolve<T>>): ResolveFn<T>;
  
  

mapToResolve

Maps an injectable class with a resolve function to an equivalent ResolveFn for use in a Route definition.

Usage {@example router/utils/functional_guards.ts region='Resolve'}

@paramproviderType<Resolve<T>>
@returnsResolveFn<T>
Jump to details