title: Pass method from parent component to child component in vuejs
body: <p>Can someone help me with passing a method from a parent to a child component in vue.js? I've been trying to do it by passing the method in as a prop...</p>
  
  <p>My parent component snippet:</p>
  
  <pre><code>methods: { 
  
      test: function () {
          console.log('from test method')
      }
  
  }
  
  &lt;template&gt;
      &lt;child-component test="test"&gt;&lt;child-component&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Child component snippet</p>
  
  <pre><code>created: {
      this.test() //returns test is not a function
  },
  
  props: ['test']
  </code></pre>
  
  <p>Can someone help?</p>
  
  <p>Thanks in advance!</p>