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 6aaef02 commit ff2c9f7Copy full SHA for ff2c9f7
packages/angular/common/src/directives/navigation/stack-controller.ts
@@ -67,18 +67,7 @@ export class StackController {
67
68
const viewsSnapshot = this.views.slice();
69
70
- let currentNavigation;
71
-
72
- const router = this.router as any;
73
74
- // Angular >= 7.2.0
75
- if (router.getCurrentNavigation) {
76
- currentNavigation = router.getCurrentNavigation();
77
78
- // Angular < 7.2.0
79
- } else if (router.navigations?.value) {
80
- currentNavigation = router.navigations.value;
81
- }
+ const currentNavigation = this.router.getCurrentNavigation();
82
83
/**
84
* If the navigation action sets `replaceUrl: true` then we need to make sure
0 commit comments