I know this is weird. I'll transform the API Data if this isn't possible.
But, I need multiple dropdowns to share the same ng-model.
Question:
- Why does does
ng-model
unique when it has the same var name? How do I make each drop down share one
ng-model="selectedSize"
<div ng-repeat="(key, val) in listing.colors_and_sizes.data" > <p>{{selectedSize}}</p> <input ng-checked="selected" type="radio" name="colors" ng-model="selected.pdw.color" ng-value="key"/> <select ng-model="selectedSize" ng-options="choice as choice for (idx, choice) in val.sizes.split(',')" ng-change="selected.product.set.size(key,val, selectedSize);"> <option value="">Please select a size</option> </select> </div>