API
Composables
Discover the composables to use in your custom Vue components and pages.
Composables
Discover the composables to use in your custom Vue components and pages.
useSubscribe()
useSubscribe() sends subscriber's data to the Listmonk host configured in app.config.ts
<script setup lang="ts">
const email = ref('')
async function submit() {
const subscriber = {
email: email.value,
}
await useSubscribe(subscriber)
}
</script>
<template>
<form @submit.prevent="submit">
<div>
<input v-model="email" type="email" name="email" placeholder="E-mail">
</div>
<button type="submit">Send</button>
</form>
</template>