title: How to bind a click event on “v-html” in Vue
body: <p>I have a simple example in jsfiddle, as described in the example, I want to insert the element via v-html and then bind the event in the insert element. In addition to adding id operation dom this way, is there a better way?</p>
  
  <p><a href="https://jsfiddle.net/limingyang/bnLmx1en/1/" rel="noreferrer">https://jsfiddle.net/limingyang/bnLmx1en/1/</a></p>
  
  <pre><code>&lt;script src="https://unpkg.com/vue/dist/vue.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;
      &lt;div v-html="link"&gt;&lt;/div&gt;
  &lt;/div&gt;
  
  var app = new Vue({
      el: '#app',
      data: {
          link: '&lt;a href="javascript:void(0)"&gt;click me&lt;/a&gt;'
      }
  })
  </code></pre>