Nuxt/test/fixtures/basic/pages/index.vue

35 lines
814 B
Vue
Raw Normal View History

<template>
<div>
<Head>
<Title>Basic fixture</Title>
</Head>
<h1>Hello Nuxt 3!</h1>
2022-03-08 18:03:21 +00:00
<div>RuntimeConfig | testConfig: {{ config.testConfig }}</div>
<div>Composable | foo: {{ foo }}</div>
<div>Composable | bar: {{ bar }}</div>
<div>Composable | template: {{ templateAutoImport }}</div>
<div>Path: {{ $route.fullPath }}</div>
<NuxtLink to="/">
Link
</NuxtLink>
<SugarCounter :count="12" />
<CustomComponent />
<component :is="`test${'-'.toString()}global`" />
<component :is="`with${'-'.toString()}suffix`" />
</div>
</template>
<script setup>
import { useRuntimeConfig } from '#imports'
2022-02-25 20:14:53 +00:00
const config = useRuntimeConfig()
// reset title template example
useHead({
titleTemplate: null
})
2022-02-25 20:14:53 +00:00
const foo = useFoo()
const bar = useBar()
</script>