title: Vue.js - How to call method from another component
body: <p>I am using Vue.Js v2. I want to call component1->c1method in component2->c2method for reload data after submitting.</p>
  
  <pre><code>Vue.component('component1', {
    methods: {
      c1method: function(){
       alert('this is c1method')
      },
    }
  })
  Vue.component('component2', {
    methods: {
      c2method: function(){
       component('component1').c1method()//like this
      },
    }
  })
  </code></pre>