3 ms·
"v-model" isn't two-way binding like in AngularJS where both parent and child can modify the same data. It's just shorthand for defining a property and an event
by orangecat 8y ago
"v-model" isn't two-way binding like in AngularJS where both parent and child can modify the same data. It's just shorthand for defining a property and an event handler. Like in React, properties flow down and events flow up. See https://vuejs.org/v2/guide/forms.html https://vuejs.org/v2/guide/forms.html
- williamdclt 8y agoMakes sense, I've done some Angular but I'm not used to Vue. Not really related but forms really are the most painful thing to handle in all those frontend frameworks, it's driving me insane how much work has to go into them when it's dead simple with a backend framework (eg Symfony/Django)!
- winrid 8y agoThere are frameworks for AngularJS etc that handle most of the work in rendering forms.