Skip to content Skip to sidebar Skip to footer

Angularjs Select Box Generated From Object

I am refactoring some code, and want to change an array of code/name objects to be named objects. I want to do this so I can use it for equality tests. The old way was to compare t

Solution 1:

Try this

<select ng-model="current.addressCode" ng-options="value.code as value.name for (key,value) in student.address"></select>

Post a Comment for "Angularjs Select Box Generated From Object"