Angular ng-options with conditional on value in simple array of strings
<p>I have two array shaped like this:</p>

<pre><code>$scope.values_array = ['string1', 'string2', 'string3', 'string4'];
$scope.skip_array = ['string2', 'string3'];
</code></pre>

<p>and I try to use ng-options like this:</p>

<pre><code>&lt;select ng-options="value as value for value in values_array &amp;&amp; skip_array.indexOf(value) === -1"&gt;&lt;/select&gt;
</code></pre>

<p>This doesn't produce an error but nothing shows up in the dropdown anymore. Without the "&amp;&amp; skip_array.indexOf(value)" it shows all the options in values_array.</p>