Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 */
        }
     },
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onload #event #vue #js
ADD COMMENT
Topic
Name
2+4 =