Nuxt/examples/use-async-data/components/MountainExample.vue
Anthony Fu 8dd77d7b6e
feat: refreshNuxtData function and app:data:refresh hook (#3929)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
2022-03-28 19:12:41 +02:00

10 lines
213 B
Vue

<script setup>
const { data: mountain } = await useFetch(
'https://api.nuxtjs.dev/mountains/mount-everest'
)
</script>
<template>
<pre class="text-sm text-left overflow-auto">{{ mountain }}</pre>
</template>