I need to use an associative array as a data source for my selection options using AngularJS.
Is it possible to use such an array?
{ "key1": "val1", "key2": "val2", "key3": "val3", ... }
and get something like this:
<select> <option value="key1">val1</option> <option value="key2">val2</option> <option value="key3">val3</option> ... </select>
I am reading docs , but I cannot figure out how to achieve this.
javascript angularjs select ng-options
davioooh Feb 12 '14 at 17:00 2014-02-12 17:00
source share