To specify available options in AngularJS for a select component:
<select ng-options="pair.id as pair.label for pair in myArray" ng-model="selectedId" />
You should set $scope.myArray like [(1, "one"), (2, "two"), (3, "three")], and read/write $scope.selectedId like 1, 2, or 3 for this example to work (make these changes in a controller where this select is contained):
mymodule.controller(['$scope', function($scope) {
$scope.myArray = [(1, "one"), (2, "two"), (3, "three")];
$scope.selectedId = 1; //lets give him a default selected value
$scope.someHowYouWillCallThisFunction = function() {
console.log("The selected id is: " + $scope.selectedId);
}
}])
or for key:value pairs from an object:
<select ng-options="key as value for (key, value) in myObject" ng-model="selectedId" />
<option>tags, check out this example.