GitHub

daffExternalMatcherTypeGuard

Helper

import { daffExternalMatcherTypeGuard } from '@daffodil/external-router/routing'

A canMatch guard function that will resolve a route externally, allowing Angular to match it.

Depending on the resolution result, the route's data will contain daffSeoData with supplemental search engine data about the route. The data on the route is cumulative. If other data properties are set, they will be merged alongside daffSeoData.

function daffExternalMatcherTypeGuard(type: string): (route: DaffRouteWithSeoData, segments: UrlSegment[]) => any

Parameters

Parametertype: string
Description