Reputation: 1279
I'm using angular with ng-repeat like that:
<tr ng-repeat="(fieldName, fieldValue) in publication">
<td>
<input type="text" ng-value="publication[fieldName]">
</td>
</tr>
But binding doesn't work - so after change I have still old values in publication[fieldName]. How can I achieve binding?
Upvotes: 0
Views: 172
Reputation: 8971
It should be ng-model
instead of ng-value
if you want a data binding.
Upvotes: 3