mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
31 lines
402 B
Vue
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>
|