R
R
Roman Sarvarov2020-12-15 09:47:54
Vue.js
Roman Sarvarov, 2020-12-15 09:47:54

What's the difference between sync and v-model in Vue 3?

If in the second version it is clear why the syntax of the type is needed :value1.syncand that with the help of v-model it was possible to configure two-way synchronization of only one parameter, then in the third version it is possible to pass many values ​​(of type v-model:value1="value2" v-model:value2="value2").
Those. :value1.sync="value1"now you can forget about the syntax ? Or are there situations where it might be needed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question