0

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?

0

1 Answer 1

3

It should be ng-model instead of ng-value if you want a data binding.

Sign up to request clarification or add additional context in comments.

2 Comments

Turn this into answer not a question in answer ... It should be...
done. @GregZuber please accept the answer as correct if you find it correct. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.