[Vuejs]-Vue.js 2-way data bind only working one way

2👍

The behavior you are seeing is because Vue cannot detect properties added to objects after the Vue has been initialized unless you add them using $set. In this case, just initialize the title property.

var vueapp = new Vue({
  el: '#app',
  data: { 
          selectedPost: {title:''} 
        }
});

Updated fiddle.

👤Bert

Leave a comment