Created
July 2, 2015 14:11
-
-
Save magnuspalmer/060c82d32c8436842f2d to your computer and use it in GitHub Desktop.
table repeat with header, body and footer for AngularJS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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