A
A
Anton2019-07-15 12:49:32
Vue.js
Anton, 2019-07-15 12:49:32

Vue - error compiling template?

Good afternoon.
Not so long ago I asked this question:
Vue is a form builder. Defeat overwriting value in inputs?
Evgeniy S advised v-model so that the changed values ​​of the inputs after each action are not overwritten.
Now, in the example, everything works as it should, only I am confused by the fact that the console swears at a conflict.
I apparently missed something fundamental while reading the doc, but what vue wants from me in this case, I don’t really understand, until I have enough experience

Mistake

[Vue warn]: Error compiling template:
:value="itemchar[0]" conflicts with v-model on the same element because the latter already expands to a value binding internally

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy S, 2019-07-15
@Eridani

:value is redundant.
in fact v-model is a wrapper over :value and @change
:value must be removed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question