title: angular use [ng-if] on select with options
body: <p>I am using angular 1.5 and I am trying to use some logic for data I got back from the microsoft graph which is totally dynamic (key and value) and create a dropdown list. I go it working with a input box, but cannot seem to get it working with a select box. </p>
  
  <p>The input box that works</p>
  
  <pre><code>&lt;input type="text" name="{{prop.name}}" ng-model="vm.filterValues[prop.name]"&gt;
      &lt;div ng-repeat="uniqueValue in vm.schemaExtentionsUniqueValues"&gt;
           &lt;div ng-if="uniqueValue[0] == prop.internalName || uniqueValue[0] == prop.name"&gt;
                {{uniqueValue[1]}}
           &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>The select box I was trying to build with sementic errors that is not working:</p>
  
  <pre><code> &lt;select name="{{prop.name}}" ng-model="vm.filterValues[prop.name]"&gt;
      &lt;span ng-repeat="uniqueValue in vm.schemaExtentionsUniqueValues"&gt;
            &lt;span ng-if="uniqueValue[0] == prop.internalName || uniqueValue[0] == prop.name"&gt;
                &lt;option value="{{uniqueValue[1]}}"&gt;{{uniqueValue[1]}}&lt;/option&gt;
            &lt;/span&gt;
      &lt;/span&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>The data 
  <a href="https://i.stack.imgur.com/jDMCa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jDMCa.jpg" alt="enter image description here"></a></p>
  
  <p>Any help will be appreciated. Cheers!</p>
  
  <p>The value the first item in each array entry gets checked against a dynamic property.</p>