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:
[classa, classb, classc]
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.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.