diff --git a/src/core/router/modules/helpers.ts b/src/core/router/modules/helpers.ts index 17e535ebc1..da5e53ba39 100644 --- a/src/core/router/modules/helpers.ts +++ b/src/core/router/modules/helpers.ts @@ -375,6 +375,10 @@ export function compileStaticRoutes(routes: StaticRoutes, opts: CompileRoutesOpt return this.meta.default; }, + get default(): boolean { + return this.meta.default; + }, + meta: { name, external: isExternal.test(pattern), @@ -415,6 +419,10 @@ export function compileStaticRoutes(routes: StaticRoutes, opts: CompileRoutesOpt return this.meta.default; }, + get default(): boolean { + return this.meta.default; + }, + meta: { ...route,