title: How to pass a method in Vue.js slot scope
body: <p>I'm using a slot scope in vuejs.  It's working great.  I can pass anything I want into the slot like this:</p>
  
  <pre><code>&lt;slot :item1="item1"&gt;    
  &lt;/slot&gt;
  </code></pre>
  
  <p>The problem is that when I pass a function as a prop, it is undefined in the parent template. So this doesn't work:</p>
  
  <pre><code>&lt;slot :my-method="myMethod"&gt;    
  &lt;/slot&gt;
  </code></pre>
  
  <p>In this example, myMethod is a method defined on the child vue component. (I am using typescript, so it is a method on the component class)</p>
  
  <p>Any ideas on how to pass a function defined on the child component back through the slot props to the parent so that it can be called from within the slot code in the parent?</p>