Use angular-pipes or ngx-pipes packages with ionic4

Hi there,

is there anyway to use following packages with ionic4 ?


im adding pipes module to app.module.ts imports

but when i try to use for example orderBy pipe it throws below error :

Uncaught (in promise): Error: Template parse errors:
The pipe ‘orderBy’ could not be found

<ion-select-option *ngFor="let country of countries | orderBy: '-'" [value]="country.id">{{ country.name}}</ion-select-option>

If you don’t get any better answers, my suggestion is “don’t do this”. It’s abuse of pipes. There is a very specific and well-thought out reason why pipes like orderBy were dropped from stock Angular.

I am also facing the same issue. Did you find the solution for this ?

See: Ionic 3 filtering, sorting and pipes