after each vue router code example Example: after each vue router router.afterEach(function(to , from ){ console.log(to , from) })