on load function in vue js code example
Example: how to run method in method vue js on load
....
methods:{
getUnits: function() {...}
},
beforeMount(){
this.getUnits()
},
......
....
methods:{
getUnits: function() {...}
},
beforeMount(){
this.getUnits()
},
......