Answer the question
In order to leave comments, you need to log in
Where does the update:foo event come from?
I read the following in the documentary:
The following
will be converted to:<comp :foo.sync="bar"></comp>
<comp :foo="bar" @update:foo="val => bar = val"></comp>
this.$emit('update:foo', newValue)
Answer the question
In order to leave comments, you need to log in
This is the name of the event, you can either updateBaz or helloWorld to call it.
As for the colon, it's kind of like a namespace. Vue in this case generates the name of the event itself.
According to the documentation
will be converted to
Etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question