title: VueJS child to parent boolean value for hide component
body: <p>Hi all and thank for helping :) </p>
  
  <p>Context :
  <em>In my child i want pass a boolean to the parent for hidden a component in the parent if user clicked</em> </p>
  
  <p>in my child component  ( <em>name : connexionDesktop</em> ) :</p>
  
  <pre><code>&lt;button v-on:click="$emit(childMessage)"&gt; Start &lt;/button&gt;
  
  data () {
    return { 
      childMessage: true
    }
  }
  </code></pre>
  
  <p>in the parent i try :</p>
  
  <pre><code>&lt;connexionDesktop v-if="fromChild == false " v-on:childToParent="childMessage"&gt; &lt;/connexionDesktop&gt;
  
  
  data () {
      fromChild:false
  }
  
  
  methods: {
      childMessage (value) {
         alert('from child' + value );
         this.fromChild = value
      }
  }
  </code></pre>
  
  <p>but that's not working ... i think i am a noob :D i can't send a message from child to parent ^^""</p>
  
  <p>can you help me ? thank a lot </p>