3 ms·
All I'm saying is that Vue doesn't do two way binding. v-model translates directly into a DOM event, ie <input v-model="someProp"> is equivalent to <input
by ElatedOwl 9y ago
All I'm saying is that Vue doesn't do two way binding. v-model translates directly into a DOM event, ie
<input v-model="someProp">
is equivalent to
<input
v-bind:value="someProp"
v-on:input="someProp = $event.target.value">
Which, as far as I understand, is exactly how React handles it and is deemed one way binding. ¯\_(ツ)_/¯
- luord 9y agoWe seem to be about to start going in circles so I'm cutting here with one last remark: For what it's worth, in Angular one can also make the events explicit, and yet in there it is called two way binding.