mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-04 19:37:18 +00:00
373e223268
This fixes a reactivity issue and adds an accompanying test case
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>
|