Model and computed property #12451
mak7an
started this conversation in
General Discussions
Replies: 1 comment
-
The setter for When you use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a component with computed property test which I use for v-model.
If computed is without set it throw error. With setter work.
If test is object and i use it's property for v-model
<other v-model="test.one" />
when it work without setter (to test), store is changing when I edit text.If I add setter it is never called (when i edit text in text field, is called if i atatch new value to it, in mounted hook for example: this.test = { test: 1 }).
Can I use
v-model="test.one"
?Beta Was this translation helpful? Give feedback.
All reactions