vue run function on load 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()
},
......