mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 11:57:13 +00:00
16 lines
230 B
Vue
16 lines
230 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<span id="count">{{ model }}</span>
|
||
|
<button
|
||
|
id="inc"
|
||
|
@click="model++"
|
||
|
>
|
||
|
Increment
|
||
|
</button>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
const model = defineModel()
|
||
|
</script>
|