title: Angularjs - dynamic ng-options
body: <p>For the need of a directive i'm writing, i have to construct dynamically the ng-options expression. Here is what i tried.</p>
  
  <p>In my directive: </p>
  
  <pre><code>// ... scope.labelProperty = 'name';
  scope.selectOptions = "l." + scope.labelProperty + " for l in list";
  </code></pre>
  
  <p>In my html template:</p>
  
  <pre><code>&lt;select class="form-control"
      ng-model="selected.available"
      ng-options="{{ selectOptions }}"
      multiple
      size="5"&gt;&lt;/select&gt;
  </code></pre>
  
  <p>This results in ng-options taking the correct expression "l.name for l in list" but  options dont display.</p>
  
  <p>Please, any idea ?</p>