maxfactor-vue-eventhandler
A simple Vue plugin to create global even handlers.
Last updated 6 months ago by dewsign .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install maxfactor-vue-eventhandler 
SYNC missed versions from official npm registry.

Vue.js Event Handler Plugin

npm

Authors:

Overview

A simple Vue plugin to create global even handlers.

Installation

npm install maxfactor-vue-eventhandler

import MaxfactorEventHandler from 'maxfactor-vue-eventhandler'

Vue.use(MaxfactorEventHandler)

Usage

// listen for global events
this.eventHandler.$on('eventhandler-init', (payload) => {
    // event has been triggered
})

// emit global events
this.emit('eventhandler-init', {
    payload: 'event-data'
})
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 18
Dependencies (1)
Dev Dependencies (13)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |