I have below code for a computed property.
computed: {
filterText: {
get() {
return this.filter; // it's a vuex state
},
set(value) {
this.setFilter(value); // it's a vuex action
}
}
}
Now, I want to write it in class-based components. I think getter should be like this, but how to write setter?
get filterText() {
return this.filter
}