Ich habe diese Klasse:Filter ngFor Schleife in Angular 2
export class Tache {
id: number;
text: string;
stat: number;
}
Stat konnte gleich 0, 1 oder 2.
Ich würde taches drucken, wenn stat = 0, ich versuche, machte es mit Filter
<md-list *ngFor="let tache of taches | filter : 'tache.stat' : '0'" (click)="onSelect(tache)" [class.selectionnee]="tache === tacheSelectionnee">
Aber ich bekomme diese Fehlermeldung:
zone.js:569 Unhandled Promise rejection: Template parse errors:
The pipe 'filter' could not be found ("