March 2018
Beginner to intermediate
344 pages
7h 7m
English
We can also hook into the global afterEach function that allows us to perform the action(s), but we can't affect navigation and thus only have access to the to and from parameters:
router.afterEach((to, from) => { console.log(`After each:`) console.log(`Route to`, to) console.log(`Route from`, from)});
Read now
Unlock full access