diff --git a/packages/angular/ssr/src/routes/ng-routes.ts b/packages/angular/ssr/src/routes/ng-routes.ts index a7ca0d137d88..2a9281f40e9b 100644 --- a/packages/angular/ssr/src/routes/ng-routes.ts +++ b/packages/angular/ssr/src/routes/ng-routes.ts @@ -205,12 +205,7 @@ async function* handleRoute(options: { ) : parentInjector; - const loadedChildRoutes = await loadChildrenHelper( - route, - compiler, - routeInjector, - ).toPromise(); - + const loadedChildRoutes = await loadChildrenHelper(route, compiler, routeInjector); if (loadedChildRoutes) { const { routes: childRoutes, injector = routeInjector } = loadedChildRoutes; yield* traverseRoutesConfig({