fix(router): child CanActivate guard should wait for parent to complete (#18110)
Closes #15670 PR Close #18110
This commit is contained in:

committed by
Miško Hevery

parent
82923a381d
commit
086f4aa72c
@ -930,7 +930,7 @@ export class PreActivation {
|
||||
|
||||
private runCanActivateChecks(): Observable<boolean> {
|
||||
const checks$ = from(this.canActivateChecks);
|
||||
const runningChecks$ = mergeMap.call(
|
||||
const runningChecks$ = concatMap.call(
|
||||
checks$, (check: CanActivate) => andObservables(from(
|
||||
[this.runCanActivateChild(check.path), this.runCanActivate(check.route)])));
|
||||
return every.call(runningChecks$, (result: boolean) => result === true);
|
||||
|
Reference in New Issue
Block a user