mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
22 lines
268 B
Vue
22 lines
268 B
Vue
<template>
|
|
<div>
|
|
<p>foo</p>
|
|
<NuxtLink
|
|
id="to-hello"
|
|
to="/wrapper-expose/page/another"
|
|
>
|
|
to hello
|
|
</NuxtLink>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
function foo () {
|
|
console.log('bar')
|
|
}
|
|
|
|
defineExpose({
|
|
foo
|
|
})
|
|
</script>
|