Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Nuxt JS Adding script tag to particular page

<template>
  <h1>This is about page</h1>
</template>

<script>
  export default {
    head() {
      return {
        script: [
          {
            src: 'https://code.jquery.com/jquery-3.5.1.min.js'
          }
        ],
      }
    }
  }
</script>

<style scoped>
</style>
Source by reactgo.com #
 
PREVIOUS NEXT
Tagged: #Nuxt #JS #Adding #script #tag #page
ADD COMMENT
Topic
Name
2+9 =