title: Calling a method inside Vue component from an outside class
body: <p>I'm pretty new to Vue/JS and am currently trying to build an app.</p>
  
  <p>I currently have a component set up as follows (there's obviously more to it but hopefully the below will help with my question):</p>
  
  <pre><code>&lt;template&gt;...&lt;/template&gt;
  &lt;script&gt;
   export default {
    data() {
     return {...}
    },
    methods: {
     method1() {
      const Class1 = new Class1;
     },
     method2() {
      ...
     }
    }
   }
   class Class1 {}
   class Class2 {
    ...want to use above method2() here
   }
  &lt;/script&gt;
  &lt;style&gt;...&lt;/style&gt;
  </code></pre>
  
  <p>Now I am able to use Class1 from inside method1() but is there any way I can easily call method2() from Class2?</p>
  
  <p>Many thanks in advance.</p>