diff --git a/lib/app/client.js b/lib/app/client.js index 56a34447d3..8278159aae 100644 --- a/lib/app/client.js +++ b/lib/app/client.js @@ -234,6 +234,10 @@ function nuxtReady (app) { cb(app) } }) + // Add router hooks + router.afterEach(function (to) { + app.$nuxt.$emit('routeChanged', to, from) + }) } Promise.all(resolveComponents)