I have a VueJs component on a regular web page. When it fires an event, I want the regular web page to respond. Is this possible?
Sites.vue is a single file component. It is instantiated in the middle of a regular web page
<sites @pmds="handlePmds"></sites>
From time to time, it emits an event with this:
this.$emit("pmds", pmds);
Back in the regular page, I want to handle the event like this:
function handlePmds(e) {
console.log(e);
}
But that doesn't work because handlePmds is not a VueJS function. So how do I catch that event?
pmdsdata?siteusing the<site></site>and when they do, it emits an event so that the jQuery autocomplete gets a list of label/value pairs.