I'm using angular 1.6
I'm looking for a way to pass a key into an ng-model. The same way you would by doing something like this in HTML
id="{{key}}-general"
For example imagine you had this:
<div ng-repeat="detail in details">
<input type="text" ng-model="telephone[0]" />
<input type="text" ng-model="telephone[1]" />
</div>
I want to pass the $index of the repeat into those ng-model so it creates a new array. I want to be able to do the following
<input type="text" ng-model="telephone[{{$index}}] />
Is this even possible?