How to filter data in Ionic

I am filtering data in my code like this in ionic1. How to do the same in ionic2.

*ngFor="let orders of orderList | filter:{originator: orginatorDropDown, businessUnitCode: branchPlantDropDown}"

and

{{orders.baseCurrency}} {{orders.orderAmount | number : 2}}

also how to write data-ng-options and ng-href in ionic2 ?

Sorry, theres no code here. Maybe edit your post?

(I used my moderator superpowers to edit this post a bit to make it semi readable)

1 Like

I think you’re offloading too much work into your templates. Filter pipes don’t exist in Angular 2+ as a deliberate design decision. They get called too frequently and bog down the app. I suggest writing your templates first, to lay out what data they would most prefer and in what format, and then writing your controllers to provide it. This means doing all the filtering when the data comes in (or when the filter conditions change).