show button in repeated list only if index is more than 1


I have an ng-repeated list how do I show a button within the list only if $index is more than 1 ?

plunkr to get started: Plunkr

Problem courtesy of: Malcr001


ng-if is only in available in angular 1.1.5 and later. Either upgrade the Angular version, or use ng-show instead:

<p data-ng-show="$index > 1">
  <a href="#">This button will only show when index is more than 1</a>
Solution courtesy of: Aleksander Blomskøld


There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.