Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nuxt head script content

head: {
    title: 'myTitle',
    meta: [
      { charset: 'utf-8' },
      { 'http-equiv': 'pragma', content: 'no-cache' },
      { 'http-equiv': 'cache-control', content: 'no-cache' },
      { 'http-equiv': 'expires', content: '0' },
      { content: 'telephone=no', name: 'format-detection' }
    ],
    script: [
      {
        innerHTML: 'console.log("hello")',
        type: 'text/javascript',
      	__dangerouslyDisableSanitizers: ['script']
      }
    ]
  }
 
PREVIOUS NEXT
Tagged: #nuxt #head #script #content
ADD COMMENT
Topic
Name
7+1 =