AngularJS - ng-if if there is a specific value in array
<p>I would like to trigger <code>ngIf</code> when there is a specific value in an array inside the scope.</p>

<p>So I have this on my scope:</p>

<pre><code>var orders = [{
    "order_no": 1,
    "color": ["blue", "pink", "red"]
}, {
    "order_no": 2,
    "color": ["yellow", "blue", "white"]
}];
</code></pre>

<p>I would like to have an <code>ngIf</code> that shows one element if, for example, yellow is present in one of the color arrays (given that I would not know the data scope in advance, but knowing the structure in advance).</p>

<p>The only way I have found to do that would be when knowing the structure of the scope in advance, so fx <code>ng-if="orders[1].color[0] === 'yellow'"</code></p>

<p>Thanks!</p>