Do you have some good example of the same behavior in a good manner?
–
marceloduendeMar 8 '13 at 19:45

@marceloduende You would have to explain first what you are trying to do, functionally speaking... A working plunk would be ideal.
–
pkozlowski.opensourceMar 8 '13 at 19:49

Agreed. Needing to set an id in a repeater is definitely a code smell. I would assume you are going to use jquery for some reason, and if that's correct, then you should write directives for that
–
Umur KontacıMar 8 '13 at 20:41

I think what the guys are trying to say is...unlike with jQuery, you don't need to use IDs to get a value. Normally you'd use ng-model to bind to a $scope variable. Because the binding is two ways, you'd have access to that variable at any point, including when you'd want to save or update it from within the controller.
–
SharondioMar 8 '13 at 20:43

1

@Sharondio Actually I suspect that the use-case here is to select an "active" div - whatever active can mean - so I'm not sure ngModel will be involved. Anyway, impossible to tell without more info from the question's author.
–
pkozlowski.opensourceMar 8 '13 at 21:11