Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: