title: Code upgrade in Vuejs
body: <p>I have below code in vue.js method.</p>
  
  <pre><code>if(element == 'name'){
     var address_data = {
     name : this.name 
    }
  }
  </code></pre>
  
  <p>I would like to replace <code>name</code> using <code>element</code> like below</p>
  
  <pre><code>if(element == 'name'){
     var address_data = {
     element : this.element 
    }
  }
  </code></pre>
  
  <p>How can I do it ?</p>