Answers for "this.$emit("

0

javascript emit event

const event = new Event('build');

// Listen for the event.
elem.addEventListener('build', function (e) { /* ... */ }, false);

// Dispatch the event.
elem.dispatchEvent(event);
Posted by: Guest on May-25-2021

Browse Popular Code Answers by Language