title: Pass variables through <slot> to parent component
body: <p>Child component:</p>
  
  <pre><code>Vue.component('v-data', {
  
    template: `
      &lt;div class="v-data"&gt;
        &lt;slot :visible-data="visibleData"&gt;&lt;/slot&gt;
      &lt;/div&gt;
    `,    
  
    computed: {
  
      visibleData(){
        return [1,2,3];
      },
  
    },
  
  });
  </code></pre>
  
  <p>In parent component I am using it like this:</p>
  
  <pre><code>&lt;v-data&gt;
     &lt;li v-for="x in visibleData"&gt;{{x}}&lt;/li&gt;
  &lt;/v-data&gt;
  </code></pre>
  
  <p>but <code>visibleData</code> is not passed in the template. I should be able to get 1,2,3.</p>
  
  <p>Is there a way to pass variables between components like this?</p>