Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion packages/angular/ssr/src/routes/ng-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,25 @@ async function* traverseRoutesConfig(options: {

for (const route of routes) {
try {
const { path = '', redirectTo, loadChildren, loadComponent, children, ɵentryName } = route;
const {
path = '',
matcher,
redirectTo,
loadChildren,
loadComponent,
children,
ɵentryName,
} = route;
const currentRoutePath = joinUrlParts(parentRoute, path);

if (matcher) {
yield {
error: `The route '${stripLeadingSlash(currentRoutePath)}' uses a route matcher which is not supported.`,
};

continue;
}

// Get route metadata from the server config route tree, if available
let matchedMetaData: ServerConfigRouteTreeNodeMetadata | undefined;
if (serverConfigRouteTree) {
Expand Down
Loading