Reputation: 23477
I have this code, but when I try to navigate to a different route the event is never called. How do I fire an event when there is a route change.
Upvotes: 0
Views: 37
Reputation: 23477
This worked...
watch: {
'$route' (to, from) {
console.log('route switched')
}
}
Upvotes: 1