title: How listen to all events from one component in VueJS?
body: <p>Is there a possibility in Vue to deal with incoming events inside one function in a way similar to this?</p>
  
  <pre><code>&lt;template&gt;         
      &lt;component v-on="eventsDistributor(eventName, $event)"/&gt;                                                                 
  &lt;/template&gt;                                                                   
  &lt;script&gt;                                                                      
  export default {                                                                      
    props: {
        handlers: Object,
    },
    methods : {                                                                 
        eventsDistributor (name, $event) {                            
            let handler = this.handlers[name]
            if (handler) return handler($event)
        }                                                                       
    }                                                                           
  }                                                                             
  &lt;/script&gt;                                                                     
  </code></pre>