To display text in uppercase, apply an uppercase filter.
<table> <tr ng-repeat=”x in names”> <td>{{ x.Name }}</td> <td>{{ x.Country | uppercase }}</td> </tr> </table> |
To show the table index, include a <td> element with $index.
<table> <tr ng-repeat=”x in names”> <td>{{ $index + 1 }}</td> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr> </table> |
<table> <tr ng-repeat=”x in names”> <td ng-if=”$odd” style=”background-color:#f1f1f1″>{{ x.Name }}</td> <td ng-if=”$even”>{{ x.Name }}</td> <td ng-if=”$odd” style=”background-color:#f1f1f1″>{{ x.Country }}</td> <td ng-if=”$even”>{{ x.Country }}</td> </tr> </table> |