mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
e6ca07bdc0
Co-authored-by: Daniel Roe <daniel@roe.dev> Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
15 lines
196 B
Vue
15 lines
196 B
Vue
<script setup lang="ts">
|
|
const state = ref(0)
|
|
|
|
const add = () => state.value++
|
|
|
|
defineExpose({
|
|
state,
|
|
add
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div>Hi i should be rendered {{ state }}</div>
|
|
</template>
|