title: VueJS: Set variable name using string
body: <p>Is it possible to set a variable <code>myvar</code> using a string in the example below ?</p>
  
  <pre><code>&lt;script&gt;
  export default {
      data() {
          return {
              myvar: 'foo'
          };
      }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I tried this which didn't work:</p>
  
  <pre><code>eval('myvar'): 'foo'
  </code></pre>