mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
e38e1de740
Co-authored-by: Pooya Parsa <pooya@pi0.io>
15 lines
315 B
Vue
15 lines
315 B
Vue
<script setup lang="ts">
|
|
const props = defineProps<{
|
|
count: number,
|
|
}>()
|
|
// eslint-disable-next-line prefer-const
|
|
let multiplier = $ref(2)
|
|
const doubled = $computed(() => props.count * multiplier)
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
Sugar Counter {{ count }} x {{ multiplier }} = {{ doubled }}
|
|
</div>
|
|
</template>
|