Data Store Vue/Nuxt (Global Variable)🔥
You can use the store to for global variables: 📄 https://nuxtjs.org/guide/vuex-store 1/ Create store: 2/ Read data store Then you can get or set var1 & var2, from any <page>.vueor <layout>.vue or <plugin>.vue or <middleware>.vue. From <template> with $store: or from <script>with injection on asyncData: 3/ Update data store 4/ Component & Store From <component>.vue you have not to directly fetch the Store. So you have to pass data from nuxt file … Read more