mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-19 16:01:24 +00:00
docs: adjust app.head
example (#31350)
This commit is contained in:
parent
c056f2c028
commit
0685e91d01
@ -119,7 +119,7 @@ const title = ref('Hello World')
|
||||
<Head>
|
||||
<Title>{{ title }}</Title>
|
||||
<Meta name="description" :content="title" />
|
||||
<Style type="text/css">
|
||||
<Style>
|
||||
body { background-color: green; }
|
||||
</Style>
|
||||
</Head>
|
||||
|
@ -146,12 +146,12 @@ export default defineResolvers({
|
||||
* ],
|
||||
* // please note that this is an area that is likely to change
|
||||
* style: [
|
||||
* // <style type="text/css">:root { color: red }</style>
|
||||
* { children: ':root { color: red }', type: 'text/css' }
|
||||
* // <style>:root { color: red }</style>
|
||||
* { textContent: ':root { color: red }' }
|
||||
* ],
|
||||
* noscript: [
|
||||
* // <noscript>JavaScript is required</noscript>
|
||||
* { children: 'JavaScript is required' }
|
||||
* { textContent: 'JavaScript is required' }
|
||||
* ]
|
||||
* }
|
||||
* }
|
||||
|
Loading…
Reference in New Issue
Block a user