mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 10:04:05 +00:00
18 lines
342 B
Vue
18 lines
342 B
Vue
<script setup>
|
|
definePageMeta({
|
|
middleware: 'foo'
|
|
})
|
|
|
|
const foo = useExtendsFoo()
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div>Extended page from foo</div>
|
|
<div>Middleware | foo: {{ $route.meta.foo }}</div>
|
|
<div>Composable | useExtendsFoo: {{ foo }}</div>
|
|
<div>Plugin | foo: {{ $foo() }}</div>
|
|
<ExtendsFoo />
|
|
</div>
|
|
</template>
|