Configuration

@daffodil/external-router can be configured by passing a DaffExternalRouterConfiguration to provideExternalRouter.

export const appConfig: ApplicationConfig = {
  providers: [
    provideRouter(routes),
    provideClientHydration(),
    ...
    provideExternalRouter({ failedResolutionPath: '/error' }),
  ],
};

Configuration Options

Property Purpose Default Value
failedResolutionPath The path to redirect to when external route resolution fails. '/'

For more information, see DaffExternalRouterConfiguration.

Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.