0👍
You cannot loop responses per one request, it’s illegal in Express, returning more than one response per one request will crash your NodeJS (Express will return an unhandledException). Loop, insert the data into an array then res send values from the array (out of the loop, of course).
- [Vuejs]-I have some question about Vue component structure
- [Vuejs]-Access to DOM element with Vue method
Source:stackexchange.com