vue-event-bus
v1.0.2
Published
vue-event-bus helps Vue components to communicate each others.
Downloads
19,889
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