fix(router): fix CanActivateChild guard provided in a lazy loaded module (#13989)
Closes #12275 PR Close #13989
This commit is contained in:

committed by
Miško Hevery

parent
47d41d492b
commit
579567ca79
@ -961,7 +961,7 @@ export class PreActivation {
|
||||
|
||||
return andObservables(map.call(from(canActivateChildGuards), (d: any) => {
|
||||
const obs = map.call(from(d.guards), (c: any) => {
|
||||
const guard = this.getToken(c, c.node);
|
||||
const guard = this.getToken(c, d.node);
|
||||
let observable: Observable<boolean>;
|
||||
if (guard.canActivateChild) {
|
||||
observable = wrapIntoObservable(guard.canActivateChild(future, this.future));
|
||||
|
Reference in New Issue
Block a user