Skip to content

Instantly share code, notes, and snippets.

@magnuspalmer
Created July 2, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnuspalmer/060c82d32c8436842f2d to your computer and use it in GitHub Desktop.
Save magnuspalmer/060c82d32c8436842f2d to your computer and use it in GitHub Desktop.
table repeat with header, body and footer for AngularJS
<table>
<thead>
<tr>
<th ng-repeat="col in myData.header track by $index"> {{col}}</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in myData.rows track by $index">
<td ng-repeat="col in row track by $index"> {{col}}</td>
</tr>
</tbody>
<tfoot>
<tr>
<th ng-repeat="col in myData.footer track by $index"> {{col}}</th>
</tr>
</tfoot>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment