AngularJS Example

HTML

<div ng-app="">
  <ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
    <li ng-repeat="name in names"  ng-class-odd="'odd'" ng-class-even="'even'">
       {{name}}
    </li>
  </ol>
</div>

CSS

</style> <!-- Ugly Hack due to jsFiddle issue: http://goo.gl/BUfGZ --> 
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<style>
.odd {
  color: red;
}
.even {
  color: blue;
}