My data is an array of objects with key-value pairs. I'm trying to populate a table with the data in a polymer component. If I use the key explicitly, it works. Here is an example with "FacilityId":
<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<template is="dom-repeat" items="{{columns}}">
<th>{{item}}</th>
</template>
</tr>
</thead>
<tbody>
<template is="dom-repeat" items="{{data}}">
<tr>
<td>{{item.FacilityId}}</td>
</tr>
</template>
</tbody>
</table>
However, as you can see from the dynamically generated columns, I don't always know what the keys will be named. I tried using {{item[0]}}
but that doesn't work, and even if it did I won't know how many there will be. I also tried using a nested template but I couldn't figure it out.
Here is what my data looks like (again, the number and names of fields could vary though):