Nuxt/examples/with-pages/pages/parent/reload-[id].vue

11 lines
181 B
Vue
Raw Normal View History

<template>
<div>
Child reloaded: {{ reloads }}
</div>
</template>
<script setup>
const reloads = useState('reload', () => 0)
onMounted(() => { reloads.value++ })
</script>