title: Adding a where condition to an ngFor
body: <p>I am looping through an array but would like to only show a subset of the elements.</p>
  
  <p>I am using this code to loop through every element of <code>active</code></p>
  
  <pre><code>&lt;div *ngFor="let p of (active | keys)"&gt;
      {{ p.name }}
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is some pseudo code to demonstrate what I am looking for:</p>
  
  <pre><code>&lt;div *ngFor="let p of (active | keys) where p.age &gt; 18"&gt;
      {{ p.name }}
  &lt;/div&gt;
  </code></pre>
  
  <p>Is there any way to specify conditions so only those with <code>p.age &gt; 18</code> will be shown?</p>
  
  <p>I know I could use an <code>*ngIf</code> within the loop but I am curious to see whether I can apply my condition within the <code>*ngFor</code></p>