I'm a new developper in angular 2 and I really really got difficulties with it...
I have a simple array of json objects that I want to filter to search elements depending on some values. For example, I have this array :
invoiceList =
[
{
invoiceNumber: 1234,
invoiceSupplier: "test",
invoiceStatus: "Import error",
invoiceCategory: "invoice with GR",
date: "22/01/2017",
amount : 134527
},
//others elemenys...
];
And I want to filter elements that have depending on the name AND the status AND the amount for example. I know that in Angular 1 we can use filters and it was easier and clearer for me, but I saw that they were removed in Angular2 and I was really really consufed about the pipes that they introduced.
Can you please show me how can I filter that array in .ts part and the .html part? Please because I felt that I'm really blocked...
Thanks in advance !