mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
22 lines
260 B
Vue
22 lines
260 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<p>
|
||
|
hello
|
||
|
</p>
|
||
|
<NuxtLink id="to-foo" to="/wrapper-expose/page">
|
||
|
to foo
|
||
|
</NuxtLink>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup lang="ts">
|
||
|
|
||
|
function hello () {
|
||
|
console.log('world')
|
||
|
}
|
||
|
|
||
|
defineExpose({
|
||
|
hello
|
||
|
})
|
||
|
</script>
|