I have to loop through an array of objects and display the values in textarea. Below is the code i tried so far:
<body ng-controller="testCtrl">
<div class="container" ng-repeat="i in items">
<div class="containerDescription">
<textarea ng-model="i.name"
style="height:120px; width:200px;"></textarea><br>
</div>
The values are getting displayed in different textareas. How to display the values in the same textarea?Attached the plunkr link : http://plnkr.co/edit/DF2Na5vHd9SKu9MHQFvb?p=preview
ng-modelparameter. Would it work correctly if you moved the parameter to a element inside your textarea like<textarea><p ng-model="i.name"></p></textarea>?