vue-bubbler
A Vue plugin that enables bubbling of custom events vue-bubbler - npm
Usage
1. Install package
npm install vue-bubbler
2. Vue.use it
;; Vue;
vm.$bubble
instead of vm.$emit
3. Emit custom events with // ... methods: { // You can add extra arguments, of course this; }
Options
Vue;
Sealing Extension
vue-bubbler includes official extension vue-bubbler/sealing
.
This adds vm.$sealed
custom property, which decides whether the component propagates custom events by $bubble
method.
Usage
In bootstrap:
;;; Vue;
In component:
;; Vue;
License
The MIT License.