What is the difference between when to use the component’s. sync modifier and when to use the custom component’s v-model?

  javascript, question

First look at the official definition of. sync.


Let’s look at the v-model again.


The objectives of both are the same: the subcomponent and external data are synchronized and bound in two directions

There can only be one v-model.
Personally, the other thing is the semantic difference.prop.syncIndicates that this subassembly modifies the value of the parent subassembly.v-modelIndicates that this is aForm typeThe component of the.