Here's a view snippet I'm working with:
<table class="table">
<tr data-ng-repeat="exercise in exercises x">
<td>
<input type="number" data-ng-model="?????????" />
</td>
<td>
{{exercise.Name}}
</td>
</tr>
</table>
I'm trying to figure out what value should go into the data-ng-model
attribute for two-way data binding to work correctly so I can access the input's value in my controller.
I attempted using
data-ng-model="{{exercise.Name}}"
, but it caused errors.
Additionally, how can I reference specific inputs in the controller? Is there a way to do something like: $scope.InputOne = ...