mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 19:04:48 +00:00
31 lines
557 B
Vue
31 lines
557 B
Vue
<script setup>
|
|
useHead({
|
|
bodyAttrs: {
|
|
class: 'body-attrs-test'
|
|
},
|
|
meta: [{ name: 'description', content: 'first' }]
|
|
})
|
|
useHead({ meta: [{ name: 'description', content: 'overriding with an inline useHead call' }] })
|
|
useMeta({ script: [{ children: 'console.log("works with useMeta too")' }] })
|
|
</script>
|
|
|
|
<script>
|
|
export default {
|
|
head () {
|
|
return {
|
|
htmlAttrs: {
|
|
class: 'html-attrs-test'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<Head>
|
|
<Title>Using a dynamic component</Title>
|
|
</Head>
|
|
</div>
|
|
</template>
|