0👍
You can set a watcher on the people array and call the displayName function on the watcher. Whenever the data in the people array changes the watcher is run, so it will be run when the ajax request returns the data from the API. Another option would be to run the loop immediately on the callback.
- [Vuejs]-Return response from VUEX actions to component
- [Vuejs]-Use vue-resource within vueify component
Source:stackexchange.com