title: Vuejs - How to call a method on load event on element
body: <p>I want to call on load event on element when it being loaded in for loop using vuejs. I have found onload event on page load, but I can't find anyway to do that with element. Here is my code, but it's not working.</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li v-for="(option,opt_index) in question.options" v-on:load="test"&gt;
    Testing
    &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Here is my component.</p>
  
  <pre><code>import VueSweetalert2 from 'vue-sweetalert2';
  
  Vue.use(datePicker);
  Vue.use(VueSweetalert2);
  Vue.use(VeeValidate);
  
  export default {
      name: "modal",
      components: {
          draggable,
      },
      mounted() {
      },
      methods: {
          test(){
              alert('load');
          }
      }
  }
  </code></pre>