[Vuejs]-How to pass data between vue components

0👍

possible solution is to return vuex store value from computed and watch the computed value.

computed: {
  coreModule () {
    return this.$store.state.CoreModule;
  }
},
watch:{
  'coreModule': function(){
      var cm = this.$store.getters.updated;
      if(this.CompletedCore.indexOf(cm) == -1){
          this.CompletedCore.push(cm);
      }
  }
}

Leave a comment