Model and computed property #12451
Maxttier
started this conversation in
General Discussions
Replies: 1 comment 4 replies
-
The setter for When you use |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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