Refactoring Nuxt plugin

This commit is contained in:
Jarek Rozanski 2025-01-29 01:01:34 +01:00
parent 842cc6f499
commit c315cc2bcc
12 changed files with 122 additions and 109 deletions

View file

@ -0,0 +1,11 @@
<template>
<button @click="sendEvent">Send Event</button>
</template>
<script setup>
import { useWideAngle } from '#imports';
const sendEvent = () => {
useWideAngle().dispatchEvent('foo', {'param1': 'bar'}, {'value1': 123});
}
</script>