Angular: select with JS array
http://angularjs.org/
HTML
<div ng-controller="MyCtrl">
<select ng-model="model" ng-change="setItemsPerPage(model)" ng-options="value for value in options"></select>
</div>
JavaScript
function MyCtrl($scope) {
$scope.model = 30;
$scope.options = [10, 20, 30,40,50];
$scope.setItemsPerPage = function(num) {
alert( num);
}
}