For the need of a directive i\'m writing, i have to construct dynamically the ng-options expression. Here is what i tried.
In my directive:
// ... s
Change your code to look like this (use javascript to pick your property):
// ... scope.labelProperty = 'name'; scope.selectOptions = "l[labelProperty] for l in list";