title: How to add dynamic ref in vue.js?
body: <p>I have some dynamic <code>&lt;input&gt;</code> elements in my dom rendered from for loop in vue. I need to add <code>ref</code> property to each of them by appending an Id to each ref like  element1,element2,..etc. How to do this in vue?</p>
  
  <pre><code>&lt;div v-for="(result, index) in data" :key="index"&gt;
      &lt;input type="text" type="file" ref="element" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How to add <code>ref</code> if <code>result.id</code> exists</p>