Hello, people, maybe my question is not enlightening, but I'll try to elucidate here. I have a code in angularjs and html, this is a form, which receives the data in array / json format, and populates that form, with an ng-repeat, what I need to do is get those fields created with ng- repeat and send to the server when submitting this same form. The code is this:
<form ng-submit="moviments.save()">
<table>
<tr ng-repeat="colletion in moviments.data">
<td><input type="hidden" ng-model="colletion.id"></td>
<td><input type="text" ng-model="colletion.data"></td>
<td><input type="text" ng-model="colletion.description"></td>
<td><input type="text" ng-model="colletion.value"></td>
</tr>
</table>
<button type="submit" >Enviar</button>
</form>
"moviments" is a reference for the controller responsible, I already tried to add in ng-model this reference, like this:
<td><input type="text" ng-model="moviments.colletion.data"></td>
but this way ng-repeat does not iterate the array of data.
If anyone can give a light, thank you very much