Skip to content

how to catch all events? #230

@twarogowski

Description

@twarogowski

Hi,

if there a possibility to use VM $on() method to catch all incoming events?
It would be even cooler to enable wildcards like:

this.vm.$on('delete-*', function(){
//...
});

to catch all events starting with 'delete-'

Right now such functionality is useful for me for diagnostics, but I think it would be useful in several other scenarios as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions