mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +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>
|