Here is a snippet of code showcasing how to use angular-ui-tree:
<div ui-tree>
<ol ui-tree-nodes="" ng-model="list">
<li ng-repeat="item in list" ui-tree-node>
<div ui-tree-handle>
{{item.title}}
</div>
<ol ui-tree-nodes="" ng-model="item.items">
<li ng-repeat="subItem in item.items" ui-tree-node>
<div ui-tree-handle>
{{subItem.title}}
</div>
</li>
</ol>
</li>
</ol>
</div>
If I have an {{item}}, is it possible to determine its position in the loop? For example, can I apply different styles based on whether the item's iteration is odd or even?