0.1.0 • Published 8 years ago
v-events v0.1.0
Vuejs events
Non Parent-Child Communication
This package consists of two lines of code:
import Vue from 'vue'
export default new Vue()
Installing
Using npm:
npm install --save v-events
Using yarn:
yarn add v-events
Usage
import VueEvents from 'v-events'
...
// Call event
VueEvents.$emit('my-event', 1)
...
// Listener event
VueEvents.$on('my-event', function (id) {
// ...
})
0.1.0
8 years ago