Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check for changes in other store NUXT JS

computed: {
  doneTodosCount () {
    return this.$store.getters.doneTodosCount
  }
},
watch:{
    doneTodosCount(value) {
       console.log(`My store value for 'doneTodosCount' changed to ${value}`);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #store #NUXT #JS
ADD COMMENT
Topic
Name
8+5 =