Using Router Events To Detect Back And Forward Browser Navigation In Angular 7.0.4

added by JavaScript Kicks
11/19/2018 1:00:24 AM

856 Views

Ben Nadel looks at the addition of the "navigationTrigger" and "restoredState" properties on the NavigationStart event emitted by the Router in Angular 6+. These properties allow us to differentiate navigation actions that were triggered imperatively by our application code; or, as a location-based change such as clicking the browser's Back and Forward buttons.


0 comments