How can I render the value of the following options list?
$scope.limits = [ {value: \'5\', text: \'Afficher 5 par page\'}, {value: \'10\',
The ng-options directive does not set the value attribute on the elements. It always uses a sequence.
ng-options
value
Using limit.value as limit.text for limit in limits means:
limit.value as limit.text for limit in limits
limit.text
limit.value
ng-model
Check this fiddle: http://jsfiddle.net/bmleite/k58Hw/