Nuxt/examples/app-config/app.vue

14 lines
285 B
Vue
Raw Normal View History

<script setup>
const config = useAppConfig()
</script>
<template>
<NuxtExampleLayout example="app-config">
<h1>{{ config.title }}</h1>
<p>{{ config.description }}</p>
<button v-if="config.showButton">
I am a button
</button>
</NuxtExampleLayout>
</template>