Today I encountered a very strange problem with vue:
I. sync bound a prop: : is-amazon.sync= "isAmazon" ,
then passed a value to the parent component with $emit in the child component: this.$emit ("update:is-amazon",val) ,
found that the isAmazon in the parent component had not changed.
so I changed my name: isamazon.sync= "isAmazon"; this.$emit ("update:isamazon",val) ,
and then succeeded.
this puzzles me, because the vue document says that it is recommended to use kebab-case to monitor custom events. As a result, kebab-case does not work here.
