mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-26 02:47:34 +00:00
16 lines
262 B
Vue
16 lines
262 B
Vue
<template>
|
|
<div>
|
|
<span data-testid="count">{{ model }}</span>
|
|
<button
|
|
data-testid="increment"
|
|
@click="model++"
|
|
>
|
|
Increment
|
|
</button>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
const model = defineModel<number>()
|
|
</script>
|