Описание тега ng-repeat

`ngRepeat` is part of the Angular.js API. It instantiates a template once for each item in a collection.

The ngRepeat directive instantiates a template once per item from a collection. Each template instance gets its own scope, where the given loop variable is set to the current collection item, and $index is set to the item index or key.

Special properties are exposed on the local scope of each template instance, including:

$index – {number} – iterator offset of the repeated element (0..length-1)

$first – {boolean} – true if the repeated element is first in the iterator.

$middle – {boolean} – true if the repeated element is between the first and last in the iterator.

$last – {boolean} – true if the repeated element is last in the iterator.