vue-event-bus

vue-event-bus helps Vue components to communicate each others.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
vue-event-bus
601.0.26 years ago6 years agoMinified + gzip package size for vue-event-bus in KB

Readme

vue-event-bus

Install

var VueEventBus = require('vue-event-bus')
Vue.use(VueEventBus)

Usage

new Vue({
  created: function () {
    this.$bus.$on('event', function () { console.log('event is received.') })
    this.$bus.$emit('event')
  }
})

License

MIT