Hey i have this piece of code:
{{i}}
It works but i would like to put extra conditions
Use ng-if (or ng-show):
Attached to the element, this will decide whether to display it or not.
Documentation for ng-if can be found here.
However, if you want to only do something if you are looping the first or last item, you can use $first and $last properties of ng-repeat as well. These are documented with ng-repeat. And can be used like this: