[Vuejs]-Vuejs – Caching searchresults of table based on multiple filters

0👍

Just a suggestion, but did you try to use a watcher to get old and new value of input.

data: function() {
  return {
    propertyToWatch: 'something'
  }
},
computed: {
  ...
},
watch: {
  'propertyToWatch': function (val, oldVal) {
    console.log(oldVal); // logs old value
    console.log(val); // logs current value
    // here you can call a function and send both of these args and detect diff
  }
},
....

Leave a comment