Nuxt/examples/with-reactivity-transform/label.vue

14 lines
251 B
Vue
Raw Normal View History

<script setup lang="ts">
const { count } = defineProps<{
count: number,
}>()
const doubled = $computed(() => count * 2)
</script>
<template>
<div class="pb2">
Count <b>{{ count }}</b><br>
Doubled <b>{{ doubled }}</b>
</div>
</template>