Skip to content

two-way binding, v-model, and form handling #854

Closed Answered by posva
plweil asked this question in Help and Questions
Discussion options

You must be logged in to vote

In pinia you don't need any extra lib:

const useStore = defineStore(id, { state: () => ({ name: '' }) })

const store = useStore()
<input v-model="store.name">

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@lucpotage
Comment options

@aacassandra
Comment options

@lucas-aguilar
Comment options

@YutoYasunaga
Comment options

@ghost
Comment options

Answer selected by plweil
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants