0.1.0 • Published 8 years ago

v-events v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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) {
  // ...
})