I have the following example:
In the directive I want to assign a dynamic id tag based upon it's position in an ng-repeat
<my-directive id="directive-{{$index}}"></my-directive>
What is happening is that when the directive gets rendered, the index is dropped
<button id="directive-"></button>
How can I use $index in the id for a directive?
EDIT I need to keep the isolate scope. The example posted is just a small example that demonstrated my issue.