• Overview
@angular/router

mapToCanMatch

function

Maps an array of injectable classes with canMatch functions to an array of equivalent CanMatchFn for use in a Route definition.

  
    function mapToCanMatch(  providers: Type<CanMatch>[]): CanMatchFn[];
  
  

mapToCanMatch

Maps an array of injectable classes with canMatch functions to an array of equivalent CanMatchFn for use in a Route definition.

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

@paramprovidersType<CanMatch>[]
@returnsCanMatchFn[]
Jump to details