I am facing an issue where I have an ng-repeat loop and I need to submit the values of input fields within it to a generated form. Using ng-model did not work for me. Is there a way to access the input names inside the form tag?
<li ng-repeat="group in tournament.groups">
<form novalidate ng-submit="tournament.submit(group.team1, group.team2)">
<span>
{{ group.team1.name }}
<input type="number" name="team1" placeholder="x">
</span> - <span>
<input type="number" name="team2" placeholder="x">
{{ group.team2.name }}
</span>
<button type="submit">Save</button>
</form>
</li>