v-model can be used on a component to implement a two-way binding.
the above code does the same as the following:
When used on a component, v-model instead expands to this:
Another way of implementing v-model within this component is to use a writable computed property with both a getter and a setter. The get method should return the modelValue property and the set method should emit the corresponding event:
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.