Angular: select list
http://angularjs.org/
by rajeshpillai
HTML
<div ng-controller="MyCtrl">
<select
ng-options="region.code as region.name for region in regions"
ng-model="region">
<option style="display:none" value="">select a region</option>
</select>
<a ng-click="region = 'AK'">select AK</a>
<br>selected: {{region}}
</div>
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
$scope.regions = [
{
name: "Alabama",
code: "AL"},
{
name: "Alaska",
code: "AK"},
{
name: "American Samoa",
code: "AS"},
];
}