angular-repeat-n icon indicating copy to clipboard operation
angular-repeat-n copied to clipboard

Can not use {{$index}} with ng-attr

Open Mehdi-Hp opened this issue 10 years ago • 0 comments

i"m receiving TypeError: t.removeAttribute is not a function error from this code:

<div class="entry__row" ng-repeat-n="entryRows" ng-attr-data-index={{$index}}>
...
</div>

I'll get no error if I change $index with some other variable.

Mehdi-Hp avatar Dec 11 '15 12:12 Mehdi-Hp