Skip to content

Dreaming-Codes/VueEmitter2

Repository files navigation

Vue Emitter 2

A Vue.js 3 wrapper for EventEmitter2


Usage

In your entrypoint add:

app.use(VueEmitter2, {}//EventEmitter2 options)

Then you can use EventEmitter2 like

this.$eventemitter2.emit('event', data)
//OR
const eventemitter2 = inject('eventEmitter2');
eventemitter2.emit('event', data)

About

A vue3 plugin for using EventEmitter2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published