I have a repeat where I loop through an array then loop through the objects 
in that array. For some reason a property named "type" is getting added to 
the objects in the array. This only happens when I use ng-repeat to loop 
through the objects.

Here is what the repeat code looks like:
 <form data-ng-repeat="config in configs track by $index">
 <label for="config-type">Select config type</label>
 <select name="config-type" id="config-type" class="config-type" 
data-ng-init="config.type = ''" data-ng-model="config.type" data-ng-change=
"setConfigOptions(config.type)">
 <option data-ng-repeat="configType in configTypes | orderBy: 'Name'" value=
"{{configType.Id}}">{{configType.Name}}</option>
 </select>
 <ul>
 <li data-ng-repeat="option in config"></li>
 </ul>




Here is what the logged object looks like:

<https://lh4.googleusercontent.com/-9kP4fb4Fhww/VH4AGcA0edI/AAAAAAAAAHQ/8ZmcmbnARok/s1600/MapleTronics_ConnectWise_Configurations_App.png>

Any help would be amazing!




-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to