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.
<ul>
<li v-for="(option,opt_index) in question.options" v-on:load="test">
Testing
</li>
</ul>
Here is my component.
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');
}
}
}