title: Call a javascript method from a vue component?
body: <p>In my main.js file I set vue up like so:</p>
  
  <pre><code>window.Vue = require('vue');
  
  Vue.component('my-component', require('./components/MyComponent.vue'));
  
  const app = new Vue({
      el: '#app',
  });
  </code></pre>
  
  <p>Also in my main.js file I have a function:</p>
  
  <pre><code>function test() {
      //do something
  }
  </code></pre>
  
  <p>How can I call the test method from inside a vue component? I know this is not an ideal set up but I'm working with legacy stuff.</p>