Here is an example of an unordered list:
<ul class="dropdown-menu inner" role="menu">
<li ng-repeat="availableAlphaName in availableAlphaNames" data-original-index="0" data-optgroup="1" class="">
<a tabindex="0" class="opt " style="" data-tokens="null">
<span class="text">{{availableAlphaName.Name}}</span>
<span class="glyphicon glyphicon-ok check-mark"></span>
</a>
</li></ul>
data-original-index must have a unique index value. When setting data-original-index to $index, it always returns 0 due to each instance having its scope.
Can anyone provide a solution to this issue?