angular2 error with pipe filter in component
问题 I'm trying to add simple search filter in input, so it could filter my records in table. But I'm receiving this kind of error: app/components/orders/orders.component.ts(12,2): error TS2345: Argument of type '{ moduleId: string; selector: string; templateUrl: string; pipes: typeof FilterPipe[]; }' is not assignable to parameter of type 'Component'. Object literal may only specify known properties, and 'pipes' does not exist in type 'Component'. All files: orders.component.html, orders