how to trigger a method when page load on vuejs code example
Example: how to use the onload event n vue js
vm=new Vue({
el:"#app",
mounted:function(){
this.method1() //method1 will execute at pageload
},
methods:{
method1:function(){
/* your logic */
}
},
})