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

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -