Replies: 1 comment
-
try with subscribe(formerly router.history.subscribe(() => {
console.log('navigate to ', router.history.location.href)
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the cleanest solution to listen to navigation events?
Why? For example: It seems to be good practice to check for service worker updates on navigation events to show a "new version available" alert to the user.
Cheers, Chris
Beta Was this translation helpful? Give feedback.
All reactions