mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
25 lines
368 B
Vue
25 lines
368 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>
|