angularjs ng-model inside nested ng-repeat -
i don't know whether duplicate question or not. have started exploring angularjs. right facing problem. here example demo example
when ever click first select drop down below gets updated. know due same ng-model. so, how generate different ng-model 2 different select drop down. please guide me new angularjs world
you can bind color object you're displaying:
<select ng-model="color.levelmodel" ng-options="c.id c in levels">     <option value="">-- choose color --</option> </select>   or selecteds object this:
<select ng-model="selecteds[$index].levelmodel" ng-options="c.id c in levels">     <option value="">-- choose color --</option> </select>   where $index current index of color object inside colors collection.
Comments
Post a Comment