Dart web interface and iteration inside the table

I tried to iterate over the data inside the table:

  <table>
    <template iterate="entry in data">
      <tr>
        <template iterate="value in entry.values">
          <td>{{ value }}</td>
        </template>
      </tr>
    </template>
  </table>

For some reason, I get this error message when creating:

An unexpected end tag (template) in the context of the table caused the voodoo mode.

It works fine when I repeat inside ul:

  <ul>
    <template iterate="entry in data">
      <template iterate="value in entry.values">
        <li>{{ value }}</li>
      </template>
    </template>
  </ul>

I thought using tables and iterations should not be a problem.

+5
source share
1 answer

Looks like I found a solution, although I still don't know what the problem is:

<table template iterate="entry in data">
  <tr template iterate="value in entry.values">
    <td>{{ value }}</td>
  </tr>
</table>
+5
source

All Articles