2022-04-05 14:02:29 +00:00
|
|
|
<script setup>
|
|
|
|
useHead({
|
|
|
|
bodyAttrs: {
|
|
|
|
class: 'body-attrs-test'
|
|
|
|
},
|
|
|
|
meta: [{ name: 'description', content: 'first' }]
|
|
|
|
})
|
2022-04-11 09:03:31 +00:00
|
|
|
useHead({ charset: 'utf-16', meta: [{ name: 'description', content: 'overriding with an inline useHead call' }] })
|
2022-04-05 14:02:29 +00:00
|
|
|
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>
|