title: How to update data in Vuejs?
body: <p>I want to display the updated data in the modal. There is a click function which trigger the testing(data) function below. 
  The data comes out right in the function. However, the template doesn't seem to update, it still displays the previous data. How can I fix this?  </p>
  
  <p>Script:</p>
  
  <pre><code> function testing(data) {
     const testingLink = new Vue ({
       el: '#test',
       data: { selected: data }, 
       methods: {
         showDialog: function() { $("#test).modal() }
       }
    })
    testingLink.showDialog()   
   }
  </code></pre>