[Solved] How to display data in select box using angularJS? [closed]


Assuming you want to bind one of your zipcode objects to a property, eg

{zipcode: '641515'}

and your actual data looks like this

[{'zipcode':'6451105'},{'zipcode':'641515'},{'zipcode':'564555'}]

this should suffice

<select name="zipCode" ng-model="zipCode"
    ng-options="zipCode.zipcode for zipCode in zipCodes"></select>

http://plnkr.co/edit/rY0cFVqyZHVoB4DyZj1Z?p=preview

3

solved How to display data in select box using angularJS? [closed]