Hi,
I'm going mad over this issue. Read (and tried) all sorts of suggestions from StackOverflow this Google group to no avail:
So i have a text area within a ng-repeat. I want to use that text area with ng-model however as it is repeating I want each text area to have a unique ID.
<div ng-repeat="options in optionsArray">
{{options}}
<textarea rows="2" ng-model="detail.textArea[[$options]]"
placeholder="Enter your note here">
</textarea>
In addition to the above - have tried ng-model="detail.textArea[[$index]] however when i see the $scope I cant see that textArea.
I've also tried updating optionsArray so that instead of looking like:
tried to use:
[{name: classa, textAreaID: classaTextArea}, {name: classb, textAreaID: classbTextArea}, {name: classc, textAreaID: classcTextArea}]
However the issue with that was the actual textArea gets the text e.g. classaTextArea
Any ideas on what i need to do?
Thanks.