GitHub

daffContentPageSchemaResolver

Helper

import { daffContentPageSchemaResolver } from '@daffodil/content/routing'

Resolves a DaffContentSchemaPage for the current route.

Uses the DaffContentPageSchemaDriver to fetch the page schema based on the normalized URL from the router state.

function daffContentPageSchemaResolver(
  route: ActivatedRouteSnapshot
  state: RouterStateSnapshot
): any

Parameters

Parameterroute: ActivatedRouteSnapshot
Description
Parameterstate: RouterStateSnapshot
Description