Skip to content

Commit a6559a4

Browse files
authored
fix(angular): navigateRoot + animated (#17164)
fixes #17144
1 parent 0cf1894 commit a6559a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

angular/src/providers/nav-controller.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ function getAnimation(direction: RouterDirection, animated: boolean | undefined,
107107
}
108108
if (direction === 'forward' || direction === 'back') {
109109
return direction;
110+
} else if (direction === 'root' && animated === true) {
111+
return 'forward';
110112
}
111113
return undefined;
112114
}

0 commit comments

Comments
 (0)