I'm having trouble with utilizing computed properties and ajax calls in Vue.js.
The "filterFactories" variable stores a list of factories. A computed property named "filterFactories" generates this list of factories.
Now, I am looking to implement a new functionality: There is a button that triggers an ajax request to fetch additional factories. I want to update the computed property "filterFactories" after the ajax request is successful. However, the update does not happen as expected. Neither of the following methods make any difference: 1. Setting this.filterFactories = response; 2. Setting window.filterFactories = response; Both approaches do not update the property.
Is there a way to refresh the "filterFactories" variable after a successful ajax call?
The following is a snippet of the larger code I'm working with:
<!-- Add your code snippet here -->