Merge pull request #68 from CodyBontecou/patch-1

Update 1.simple.md
This commit is contained in:
Robert Soriano
2023-01-25 22:42:38 -05:00
committed by GitHub

View File

@@ -107,12 +107,12 @@ export default defineNuxtPlugin(() => {
<script setup lang="ts"> <script setup lang="ts">
const { $client } = useNuxtApp() const { $client } = useNuxtApp()
const hello = await $client.hello.useQuery({ text: 'client' }) const { data: hello } = await $client.hello.useQuery({ text: 'client' })
</script> </script>
<template> <template>
<div> <div>
<p>{{ hello.data?.greeting }}</p> <p>{{ hello?.greeting }}</p>
</div> </div>
</template> </template>
``` ```