fix(router): resolve and guards should be able to reject with null and undefined (#19418)
Closes #17148
This commit is contained in:

committed by
Victor Berchet

parent
ff5b050a92
commit
a9d32a3f89
@ -47,7 +47,7 @@ export class PreActivation {
|
||||
private future: RouterStateSnapshot, private curr: RouterStateSnapshot,
|
||||
private moduleInjector: Injector, private forwardEvent?: (evt: Event) => void) {}
|
||||
|
||||
initalize(parentContexts: ChildrenOutletContexts): void {
|
||||
initialize(parentContexts: ChildrenOutletContexts): void {
|
||||
const futureRoot = this.future._root;
|
||||
const currRoot = this.curr ? this.curr._root : null;
|
||||
this.setupChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);
|
||||
|
Reference in New Issue
Block a user