Answers for "vuejs methods window onload"

0

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 */
        }
     },
})
Posted by: Guest on March-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language