Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to load existing json data in nuxt

<script>
import authors from '~/static/data.json'

export default {
  asyncData ({ params }) {
    return { authors }
  }
}
</script>
Source by github.com #
 
PREVIOUS NEXT
Tagged: #load #existing #json #data #nuxt
ADD COMMENT
Topic
Name
7+7 =