fix(angular): navigateRoot + animated (#17164)

fixes #17144
This commit is contained in:
Manu MA
2019-01-18 17:08:53 +01:00
committed by GitHub
parent 0cf189412d
commit a6559a4ef4

View File

@ -107,6 +107,8 @@ function getAnimation(direction: RouterDirection, animated: boolean | undefined,
} }
if (direction === 'forward' || direction === 'back') { if (direction === 'forward' || direction === 'back') {
return direction; return direction;
} else if (direction === 'root' && animated === true) {
return 'forward';
} }
return undefined; return undefined;
} }