Nuxt/test/fixtures/basic/pages/index.vue
2022-03-08 19:03:21 +01:00

21 lines
457 B
Vue

<template>
<div>
<Head>
<Title>Basic fixture</Title>
</Head>
<h1>Hello Nuxt 3!</h1>
<div>RuntimeConfig | testConfig: {{ config.testConfig }}</div>
<div>Composable | foo: {{ foo }}</div>
<div>Composable | bar: {{ bar }}</div>
<div>Plugin | myPlugin: {{ $myPlugin() }}</div>
<CustomComponent />
</div>
</template>
<script setup>
const config = useRuntimeConfig()
const foo = useFoo()
const bar = useBar()
</script>