Using ng-repat to populate an HTML table with an array has been causing some naming normalization issues for me.
Dealing with stubborn users, I am now in search of a quick workaround.
Sometimes my array AgendaItems appears as:
{"Agenda Item":"1","Legistar ID":"62236","Title":"Approval of Minutes","Meeting ID":"49837"}
And other times it looks like this:
{"AgendaItem":"1","LegistarID":"62236","Title":"Approval of Minutes","MeetingID":"49837"}
In the HTML code:
<tbody ng-repeat="ai in AgendaItems">
<tr>
<td>{{ai.MeetingID}}</td>
<td>{{ai.AgendaItem}}</td>
<td>{{ai.LegistarID}}</td>
<td>{{ai.Title}}</td>
</tr>
</tbody>
Wondering if there is a way to use index value instead of specific property names like ai.[i]. This would eliminate concerns about spaces between column names.
Your assistance on this matter is greatly appreciated.
Thanks, Erasmo