nidus-sync/ts/AppRMO.vue

34 lines
579 B
Vue
Raw Normal View History

2026-04-03 15:24:19 +00:00
<template>
<div id="app">
<h1>{{ message }}</h1>
<p>Count: {{ count }}</p>
<button @click="increment">Increment</button>
</div>
</template>
<script setup lang="ts">
import { ref, computed } from "vue";
import { useHead } from "@vueuse/head";
const count = ref<number>(0);
const message = ref<string>("hey");
const increment = (): void => {
count.value++;
};
// Reactive head management
2026-04-03 15:24:19 +00:00
/*
useHead({
title: computed(() => `Count: ${count.value} - My Vue App`),
link: [
{
rel: "icon",
type: "image/x-icon",
href: "/favicon.ico",
},
],
});
2026-04-03 15:24:19 +00:00
*/
</script>