Pinia: Revision history

From AWVVO
Jump to navigationJump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

29 January 2025

  • curprev 05:2205:22, 29 January 2025 Admin talk contribs m 1,007 bytes +183 Add Pinia to Vue
  • curprev 05:2105:21, 29 January 2025 Admin talk contribs 824 bytes +824 Created page with "= Add Pinia to Vue = == Installation == <syntaxhighlight lang="php" copy> npm install pinia </syntaxhighlight> == Initialize == <syntaxhighlight lang="php" copy> import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import vuetify from './plugins/vuetify' // Adjust if necessary const app = createApp(App) app.use(createPinia()) app.use(vuetify) app.mount('#app') </syntaxhighlight> == Create store src/stores/counter.js == <s..."