maxfactor-vue-eventhandler
A simple Vue plugin to create global even handlers.
Last updated 9 months ago by dewsign .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ 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'
})

Current Tags

  • 1.0.0                                ...           latest (9 months ago)

6 Versions

  • 1.0.0                                ...           9 months ago
  • 0.0.6                                ...           a year ago
  • 0.0.4                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (13)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |