I have a list of items, each has its own item.value and item.name. I want to generate HTML code as follows:
<option value="{{item.value}}">{{item.name}}</option>
how can I do it in AngularJS? Thanks a lot.
UPDATE: I forget to mention the list I have is an object because I want to associate the Id to use it as an index, for e.g.:
$scope.list={
0:{value:0,name:"name0"},
5:{value:5,name:"name5"}
}