Head Management
#119
-
Head Composable |
Beta Was this translation helpful? Give feedback.
Answered by
hixb
Jul 12, 2022
Replies: 1 comment
-
` <script setup> useHead({ title: 'My App', // or, instead: // titleTemplate: (title) => `My App - ${title}`, viewport: 'width=device-width, initial-scale=1, maximum-scale=1', charset: 'utf-8', meta: [ { name: 'description', content: 'My amazing site.' } ], bodyAttrs: { class: 'test' } }) </script>` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
xiao-ice
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
<script setup> useHead({ title: 'My App', // or, instead: // titleTemplate: (title) => `My App - ${title}`, viewport: 'width=device-width, initial-scale=1, maximum-scale=1', charset: 'utf-8', meta: [ { name: 'description', content: 'My amazing site.' } ], bodyAttrs: { class: 'test' } }) </script>`