Vue Event Proxy

Let Vue.js support global events.

install

$ npm install --save vue-event-proxy

Usage

Just add global: prefix

  import EventProxy from 'vue-event-proxy';
  Vue.use(EventProxy);

  this.$on('global:EVENT_NAME');
  this.$once('global:EVENT_NAME');
  this.$emit('global:EVENT_NAME');
  

GitHub