3 ms·
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-r
by vlad 13y ago
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 https://news.ycombinator.com/item?id=5790799