To enhance its appearance, include some CSS on the page.
<style> table, th , td { border: 1px solid grey; border-collapse: collapse; padding: 5px; } table tr:nth-child(odd) { background-color: #f1f1f1; } table tr:nth-child(even) { background-color: #ffffff; } </style> |
To sort the table, include an orderBy filter.
<table> <tr ng-repeat=”x in names | orderBy : ‘Country'”> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> |