Nuxt/test/fixtures/basic/pages/wrapper-expose/page/index.vue

22 lines
268 B
Vue
Raw Permalink Normal View History

<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>