News for hackers. Stuff that matters.
Re:React, a JavaScript library for building user interfaces by vlad on Thursday May 30, 2013 @12:08AM (#5790874)
Hi guys! Great job! I haven't had a chance to take a thorough look, but I want to clarify that with AngularJS, you could simply do something like

   <li ng-repeat="item in items" 
       ng-style="{'background-color': $index % 2 == 0 ? 'yellow' : 'green }">
   </li>
without creating a directive. Incidentally, I decided to rewrite the React tutorial in AngularJS, and I appreciate any feedback.

https://news.ycombinator.com/item?id=5790799

There are no comments on this comment yet.