ng-show can take an expression:
<label ng-repeat="stones in rocks">
<a href="#">Rock {{$index}}</a>
<i class="icon-trash" ng-show="$index > 2"></i>
</label>
Starting with version 1.1.5 , you can leave unwanted elements outside the DOM with
<i class="icon-trash" ng-if="$index > 2"></i>
source
share