mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
20 lines
252 B
Vue
20 lines
252 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>
|