title: Is it possible to use inline an $emitted parameter?
body: <p>In the following code, clicking on the component emits a signal to the parent, who modifies its state inline (in the sense - not via a handler):</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>Vue.component('my-component', {
    template: '&lt;div v-on:click="emitit"&gt;click on the component&lt;/div&gt;',
    methods: {
      emitit: function() {
        this.$emit('mysignal', 7)
      }
    }
  })
  
  new Vue({
    el: "#root",
    data: {
      from: 0
    }
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js"&gt;&lt;/script&gt;
  &lt;div id="root"&gt;
    &lt;my-component v-on:mysignal="from=5"&gt;&lt;/my-component&gt;
    from component: {{ from }}
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is it possible to access the parameter provided via the <code>$emit</code> directly in <code>v-on:mysignal="..."</code>?</p>
  
  <p>I know that I can use a handler defined in the main Vue component but I would like to simplify my code and avoid to have several handlers in <code>methods</code>.</p>