vue syntactic sugar.sync

This is also a  vue 2.3 new syntactic sugar added later. This is also a syntactic sugar that is usually easy to use when sub-assembling components, and its implementation mechanism v-modelis the same.

 

 

This method is useful when you need to modify the value of the parent component in the child component

Guess you like

Origin blog.csdn.net/SmartJunTao/article/details/108576717