title: Filter ngFor loop in Angular 2
body: <p>I have this class : </p>
  
  <pre><code>    export class Tache {
         id: number;
         text: string;
         stat: number;
  }
  </code></pre>
  
  <p>Stat could be equal to 0 , 1 or 2.</p>
  
  <p>I would print <em>taches</em> when stat = 0, I try to made it with filters</p>
  
  <pre><code>&lt;md-list *ngFor="let tache of taches | filter : 'tache.stat' : '0'"  (click)="onSelect(tache)" [class.selectionnee]="tache === tacheSelectionnee"&gt;
  </code></pre>
  
  <p>But I get this error : </p>
  
  <pre><code>zone.js:569 Unhandled Promise rejection: Template parse errors:
  The pipe 'filter' could not be found ("
  </code></pre>