Hi there, I am trying to create a central functions file rather than repeat functions in each component they are used in. Have been trying the following but this doesn’t seem to work. How would I achieve it?
//functions js
let functions = {
functionOne() {}
functionTwo() {}
}
export default functions
//vue component
import functions from '.path/to/'
mounted() {
functions.functionOne()
}