Nuxt/test/fixtures/basic/pages/wrapper-expose/page.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

31 lines
402 B
Vue

<template>
<div>
<NuxtPage ref="page" />
<button
id="log-hello"
@click="logHello"
>
hello
</button>
<button
id="log-foo"
@click="logFoo"
>
foo
</button>
</div>
</template>
<script setup lang="ts">
const page = ref()
function logFoo () {
page.value.pageRef.foo()
}
function logHello () {
page.value.pageRef.hello()
}
</script>