In My AngularJs app, I have an ng-repeat like:
<div data-ng-repeat="pl in parentlist">
<div id="test{{$index}}" ng-model='list{{$index}}' >Test</div>
</div>
The Id in the Div gets appends and renders like expected id="test0" but the ng-model doesn't behave in the same way and it throws an error
[$parse:syntax] Syntax Error: Token '$index' is unexpected, expecting [:] at column 8 of the expression [list{{$index}}] starting at [$index}}]
How do I achieve this appending? use filters?