Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to send varible to another page in nuxt.js

// page.js file in the store folder
const state = {
  name: ''
}

const mutations = {
    setName(state, name) {
    state.name = name
  }
}

const getters = {
  getName: (state) => state.name
}

export default {
  state,
  mutations,
  getters
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #send #varible #page
ADD COMMENT
Topic
Name
5+6 =