[Vuejs]-Conflict between vue.js V-for and Flask in HTML code?

-1👍

You’re not looping over your data correctly. Currently, item does not exist as a variable in Jinja, therefore giving you the error. It has nothing to do with Vue

Try this instead:

{% for item in rowData%}
<tr>
  <th scope="row">{{ item.mail }}</th>
  <td>{{ item.date }}</td>
  <td>{{ item.adress }}</td>
  <td>{{ item.company }}</td>
  <td>{{ item.fliers }}</td>
</tr>
{% endfor %}

Also read the Jinja documentation on looping.

Leave a comment