Nuxt.js is a framework for universal Vue.js Application which supports server side rendering.
๐ค Lifecycle of Nuxt.js
The following flow is about the server is called in Nuxt.js.
๐น nuxtServerInit
nuxtServerInit
is called in server side and client side.
export const actions = { |
๐ณ nuxtClientInit
Custom plugin nuxtClientInit
is called only in client side.
./nuxt.config.js
// nuxt.config.js |
./src/plugins/nuxt-client-init.js
export default async ctx => { |
./src/store/index.js
export const actions = { |
๐ฎ Appendix
Parameter in routing
In template, you can get a parameter like:
|