vue-event-bus

vue-event-bus helps Vue components to communicate each others.
11,743 6
Install
npm install vue-event-bus
Latest Version:1.0.2
Vue:2
License:MIT
Last Updated:Feb 24, 2017
Links: GitHub  ·  npm
Maintainer: devneko

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

Version History

Version Released Vue License
1.0.2 ^2.0.0 MIT