dynamic id ng-repeat

To answer your question, try this:

<div id="{{$index}}" ...>

While the above should work, this might be not what you want really (!). Please note that this is rather rare with AngularJS to manipulate elements by referring those by id.

You should focus on your model, declarative describe UI and let AngularJS do the rest without doing low-level DOM manipulations “by hand”.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)