I'm making a form component that will allow you give a list of values and show input[number] fields for each value in the list.
The problem is that it's a list of objects, not number primitives, and I need a good way to establish data-binding between my inputs and the number property in each object.
This number property would be dynamically set via a scope attribute on my component.
My data could look like the following
$scope.ngModelList = [{foo: 'bar', num: 1}, {foo: 'baz', num: 3}];
and my inputs look somewhat like this
<div class="inputs"
data-ng-repeat="model in ngModelList">
<input type="number"
data-ng-model="model">
</div>