I am trying to make a simple selection of a dropdown using AngularJS
this is my code:
<select class="span3" novalidate="" data-ng-options="select p.name for p in create_options_array(item.values)"> </select>
create_options_array(item.values) has the form:
[{"id":0,"name":"OG"},{"id":1,"name":"OS"},{"id":2,"name":"PG"},{"id":3,"name":"PS"}]
a drop-down menu appears, but there is no value on it to select what am I doing wrong?
javascript angularjs
maki
source share