File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,5 @@ ts_library(
22
22
"@npm//@angular/platform-server" ,
23
23
"@npm//@angular/router" ,
24
24
"@npm//@types/node" ,
25
- "@npm//rxjs" ,
26
25
],
27
26
)
Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ import {
13
13
Type ,
14
14
createPlatformFactory ,
15
15
platformCore ,
16
+ ɵwhenStable as whenStable ,
16
17
} from '@angular/core' ;
17
18
import {
18
19
INITIAL_CONFIG ,
19
20
ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS ,
20
21
} from '@angular/platform-server' ;
21
22
import { Route , Router , ɵloadChildren as loadChildrenHelper } from '@angular/router' ;
22
- import { first } from 'rxjs/operators' ; // Import from `/operators` to support rxjs 6 which is still supported by the Framework.
23
23
24
24
interface RouterResult {
25
25
route : string ;
@@ -98,7 +98,7 @@ export async function* extractRoutes(
98
98
}
99
99
100
100
// Wait until the application is stable.
101
- await applicationRef . isStable . pipe ( first ( ( isStable ) => isStable ) ) . toPromise ( ) ;
101
+ await whenStable ( applicationRef ) ;
102
102
103
103
const injector = applicationRef . injector ;
104
104
const router = injector . get ( Router ) ;
You can’t perform that action at this time.
0 commit comments