-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Description
First of all, thanks for all the great work so far. vuejs is by a great measure the most enjoyable frontend framework I've tried so far.
As for some of the changes that are scheduled for v2, I'd like to know if a replacement with a plugin is possible.
One thing i liked about events is the events
scope where all listeners are gathered. With your suggestion for vue2 with a global event-bus, I don't see how I can replace following code:
my comp = {
events: {
'overlay:close': function() {
/* handle event */
}
}
}
I don't miss the actual hierarchy of $broadcast and $dispatch within the component tree, but I'd really love to keep a global event bus that works together with the events
object. If this is possible through a plugin, that would fit my needs. Maybe it could be possible to make $emit
emit globally with an additional attribute?