Answer the question
In order to leave comments, you need to log in
Vue 3 events. How to set v-on for a programmatically created component?
Good day!
Please tell me how to solve the problem:
I create a component programmatically, something like this:
let component = defineComponent({
extends: ExampleComponent
});
const div = document.createElement('div');
let app = createApp(component, props).mount(div);
Answer the question
In order to leave comments, you need to log in
Judging by this: https://v3.vuejs.org/guide/migration/events-api.ht... it is suggested to use a third-party event emitter implementation
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question