Const
Vue 2 Plugin that must be installed for pinia to work. Note you don't need this plugin if you are using Nuxt.js. Use the buildModule instead: https://pinia.vuejs.org/ssr/nuxt.html.
buildModule
import Vue from 'vue'import { PiniaVuePlugin, createPinia } from 'pinia'Vue.use(PiniaVuePlugin)const pinia = createPinia()new Vue({ el: '#app', // ... pinia,}) Copy
import Vue from 'vue'import { PiniaVuePlugin, createPinia } from 'pinia'Vue.use(PiniaVuePlugin)const pinia = createPinia()new Vue({ el: '#app', // ... pinia,})
Vue imported from 'vue'.
Vue
Generated using TypeDoc
Vue 2 Plugin that must be installed for pinia to work. Note you don't need this plugin if you are using Nuxt.js. Use the
buildModule
instead: https://pinia.vuejs.org/ssr/nuxt.html.