Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to send varible to another page in nuxt.js

// Page.vue page
<template>
  <div>Welcome</div>
</template>
<script>
  export default {
    layout: 'login',
    created() {
      this.$store.commit('page/setName', 'Hello')
    },
  }
</script>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #varible #page
ADD COMMENT
Topic
Name
8+3 =