DEV Community

Discussion on: Easily Handle Component Versioning with Vue3

Collapse
 
lordsayur profile image
Omar

Hi, for the event passed on the component, i think you can write,

v-on=“$listeners”

I have a question, does
v-bind=“{...$attrs, ...$props}”
will also pass custom directive? for example when using v-mask

Collapse
 
rdelga80 profile image
Ricardo Delgado

I'll have to check out $listeners, even though I've been more focused on using the render function, but maybe it's the same thing.

As for directives, I haven't really had a use case for it yet. But I'd have to wrack my brain to this if I would ever implement a directive effecting the inside of a component from the parent of the component.

Meaning that the Versioned component, not the shell component, would be the only place it would be needed.

Definitely still lots to figure out.