3 ms·
I think two-way-binding is the reason why many people prefer Vue to React. If you did Ember or Angular1, Vue is much easier to grasp.
by k__ 8y ago
I think two-way-binding is the reason why many people prefer Vue to React.
If you did Ember or Angular1, Vue is much easier to grasp.
- williamdclt 8y agoWell, one-way binding (or rather, unilateral data flow) is why I prefer React :)
- k__ 8y agoSame here. But I probably wouldn't look too much into React if I wasn't forced to do it in a project 3 years ago.
- 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.
- madeofpalk 8y agoThat's the narrative - if you're coming from Angular, you're going to find Vue more similar and probably easier to grasp.