The correct solution is Gleno's.
$id
is guaranteed to be unique for every created scope, while $index
changes with any change to the count of the underlining collection.
You need to add the $index property(zero based) that is available on the scope in the repeater