We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aafd68 commit cbf1283Copy full SHA for cbf1283
packages/angular/common/src/providers/nav-controller.ts
@@ -37,9 +37,9 @@ export class NavController {
37
if (router) {
38
router.events.subscribe((ev) => {
39
if (ev instanceof NavigationStart) {
40
+ // restoredState is set if the browser back/forward button is used
41
const id = ev.restoredState ? ev.restoredState.navigationId : ev.id;
- this.guessDirection = id < this.lastNavId ? 'back' : 'forward';
42
- this.guessAnimation = !ev.restoredState ? this.guessDirection : undefined;
+ this.guessDirection = this.guessAnimation = id < this.lastNavId ? 'back' : 'forward';
43
this.lastNavId = this.guessDirection === 'forward' ? ev.id : id;
44
}
45
});
0 commit comments