Select ng-model
by bmleite
HTML
<div ng-controller="Ctrl">
<select id="limitType" name="limit" ng-model="selectedLimit" ng-options="limit.value as limit.text for limit in limits" ng-init="selectedLimit='5'"></select>
<pre>selectedLimit: {{selectedLimit | json}}</pre>
<div>
JavaScript
var app = angular.module('app', []);
function Ctrl($scope) {
$scope.limits = [{
value: '5',
text: 'Afficher 5 par page'
}, {
value: '10',
text: 'Afficher 10 par page'
}, {
value: '15',
text: 'Afficher 15 par page'
}, {
value: '20',
text: 'Afficher 20 par page'
}];
}