I have the following element:
<input type="text" v-model="selectedPost.title" v-bind:value="selectedPost.title">
and I have the following Vue.js app:
var vueapp = new Vue({
el: '#app',
data: {
selectedPost: {}
}
});
When I type something on the input, the Vue model is updated, I can see it unning this on my browser console:
vueapp.$data.selectedPost.title
Returns the value typed in the textbox. All good.
But.. when I do this:
vueapp.$data.selectedPost.title = "changed";
The textbox does not update with the assigned value.
Why? How to make it work?
This jsfiddle shows the issue happening: https://jsfiddle.net/raphadko/3fLvfea2/