I'm having trouble populating an array of input values. I think I know why but I can't seem to get around it.
An input element is created for every item in an array called selectedAttributes[]. I want the value of each input element along with attribute to be stored into a NEW object, thus creating a hash/map.
Existing array: selectedAttributes ["attribute1",...."attribute_N"]
Goal:
{attribute1:'inputValue1', attribute2:'inputValue2'...}
So far, the HTML that doesn't work
<tbody>
<tr ng-repeat="attribute in selectedAttributes">
<td><a>{{attribute}}</a></td>
<td> ---> </td>
<td><input ng-model="formFields.attribute" class="field" id="{{attribute}}" type="text" > </td>
</tr>
</tbody>
If this is not possible I thought it would be ok to store the input values into an array then combine the selectedAttributes[] with input value list, but I prefer to avoid that.
Thanks!