below is the html:
<tr ng-repeat-start="select in selection">
<td style="overflow: hidden;">{{select.name}}</td>
<td style="overflow: hidden;">{{select.type}}</td>
<td style="overflow: hidden;">{{select.application}}</td>
<td>
<image ng-src="{{commentImg}}" width="20" height="20" ng-click="selectComment()"></image>
</td>
</tr>
selectComment opens modal which has textarea. Selection array has 3 key/value per object(i.e. name,type, application). i want to add textarea value as fourth key/value in every object to selection json object.
below is the modal:-
<div class="dialog-panel3">
<div class="page-title">
Comments
</div>
<br>
<form name="commentForm">
<textarea class="textarea" ng-model="inputValue" required></textarea>
<br>
<br>
<button ng-click="comment(inputValue)" ng-disabled="commentForm.$invalid">Save</button>  
<button ng-click="close()">Cancel</button>
</form>
</div>
Please suggest.