<input name="options[{{$index}}]" ng-repeat="n in [] | range:count"
ng-model="field.options[$index].value" >
in the conttroller
$scope.field.options = [];
when i add item to array it s saving them with key.
"options":{"0":{"value":"sdfas"},"1":{"value":"sdfsdf"},"2":{"value":"sdfasdf"}}
I wanna remove that "0" "1" ..
the reason i wanna remove the key is i think my api not work because of this keys. When i post my objcet like:
List<someobject> options;
and someobject class has only value field.
modaland what{{ $scope.fieldModalVm.field.options }}spits outpushing into the array an object that has avaluevariable instead of pushing the actual value of thevaluevariable itself into the array.