fix: Update test code to type-check under TS 2.5 (#20175)
PR Close #20175
This commit is contained in:
@ -381,7 +381,7 @@ export class RouterInitializer {
|
||||
const opts = this.injector.get(ROUTER_CONFIGURATION);
|
||||
const preloader = this.injector.get(RouterPreloader);
|
||||
const router = this.injector.get(Router);
|
||||
const ref = this.injector.get(ApplicationRef);
|
||||
const ref = this.injector.get<ApplicationRef>(ApplicationRef);
|
||||
|
||||
if (bootstrappedComponentRef !== ref.components[0]) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user