Since ng-repeat
provides a new scope object on each iteration, I prefer using something like
The advantage of this method is that you are guranteed not to have a duplicate selector with same id on the document. Duplicates could otherwise easily arise when routing or animating.