Podczas generowania pól ng-repeat w angularze chce nadać unikalne nazwy dla modeli, lecz przy ng-model{{$index}} nie przechodzi.
<select class="ui fluid search dropdown" ng-model="quantitySegments{{$index}}" ng-change="changeSegment{{$index}}()">
ng-change działa i nazwa wypełnia się poprawnie, dlaczego w ng-model taki sposób nie funkcjonuje, czy jest na to jakaś alternatywa? Poniżej błąd:
bundle.js:28766 Error: [$parse:syntax] Syntax Error: Token '{' is an unexpected token at column 17 of the expression [quantitySegments{{$index}}] starting at [{{$index}}].
http://errors.angularjs.org/1.5.6/$parse/syntax?p0=%7B&p1=is%20an%20unexpec…oken&p2=17&p3=quantitySegments%7B%7B%24index%7D%7D&p4=%7B%7B%24index%7D%7D
at bundle.js:15192
at Object.throwError (bundle.js:29401)
at Object.ast (bundle.js:29154)
at Object.compile (bundle.js:29617)
at Parser.parse (bundle.js:30546)
at $parse (bundle.js:30711)
at new NgModelController (bundle.js:41589)
at Object.invoke (bundle.js:19832)
at $controllerInit (bundle.js:25301)
at nodeLinkFn (bundle.js:24220)