From 2aeb880465aba1c1796d457de7962dcece567861 Mon Sep 17 00:00:00 2001 From: NagornovAlex Date: Sun, 28 Feb 2021 17:51:25 +0300 Subject: [PATCH] Lazy routes registration fix. Lazy routes should come first to go before '**' ay route. --- projects/shell/src/menu-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/shell/src/menu-utils.ts b/projects/shell/src/menu-utils.ts index d0649b5..d9fce10 100644 --- a/projects/shell/src/menu-utils.ts +++ b/projects/shell/src/menu-utils.ts @@ -10,5 +10,5 @@ export function buildRoutes(options: Microfrontend[]): Routes { loadChildren: () => loadRemoteModule(o).then(m => m[o.ngModuleName]) })); - return [...APP_ROUTES, ...lazyRoutes]; + return [...lazyRoutes, ...APP_ROUTES]; }