Skip to content

Subscribe to all custom events on a child component #7862

@dmmikkel

Description

@dmmikkel

What problem does this feature solve?

Would make writing wrapper components easier

What does the proposed API look like?

When v-on receives a function it should trigger on every custom event emitted by the child

<my-custom-component v-bind="$props" v-on="onAnyEvent"></my-custom-component>

Argument one could be the name of the event

onAnyEvent(eventName, eventArgs) { // do something }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions