Suppose i have the following array with strings:
$scope.open_slots = [\"00\",\"10\",\"50\"], and i would like to have the following results:
$scope.open_slots = [\"00\",\"10\",\"50\"]
You can do it using the as part of the ngOptions:
as
ngOptions
ng-options="slot as slot+' minutes' for slot in open_slots">
See, also, this short demo.
Try:
<select data-ng-model="minutes_per_slot" data-ng-options="item as item + ' minutes' for item in open_slots">