Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ ts_library(
"@npm//@angular/platform-server",
"@npm//@angular/router",
"@npm//@types/node",
"@npm//rxjs",
],
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import {
Type,
createPlatformFactory,
platformCore,
ɵwhenStable as whenStable,
} from '@angular/core';
import {
INITIAL_CONFIG,
ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS,
} from '@angular/platform-server';
import { Route, Router, ɵloadChildren as loadChildrenHelper } from '@angular/router';
import { first } from 'rxjs/operators'; // Import from `/operators` to support rxjs 6 which is still supported by the Framework.

interface RouterResult {
route: string;
Expand Down Expand Up @@ -98,7 +98,7 @@ export async function* extractRoutes(
}

// Wait until the application is stable.
await applicationRef.isStable.pipe(first((isStable) => isStable)).toPromise();
await whenStable(applicationRef);

const injector = applicationRef.injector;
const router = injector.get(Router);
Expand Down