I am requiring an external script I made with function specific to Square. I want to be able to call one of the function in my mounted method. Am I able to access methods of this square.js file since I've now required it for this ?
app.js
window.Vue = require('vue');
var square = require('./square.js');
Vue.component('ShopArt',
require('./components/ShopArt.vue').default);
new Vue({
el: "#app",
data() {
return {
shop: shop,
}
},
mounted() {
}
......