ngx-order-pipe
ngx-order-pipe copied to clipboard
Create Ivy build
- ngx-order-pipe [es2015/esm2015] (git+https://github.com/VadimDez/ngx-order-pipe.git)
Encourage the library authors to publish an Ivy distribution.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@VadimDez can you have a look at the PR?
Now its breaking with Angular 16. If it's not yet, just delete your node_modules
folder followed by reinstalling npm and try to compile again. I'm dropping this library
Anyone who have faced this same issue and found any replacement, plz do share as authors of this plugin is not publishing any update for ivy.
@stormbreakR1 is super simple to create a custom pipe and use lodash orderBy or lodash sortBy for sorting. This way you could also keep the type if you implement it as generic
@btxtiger thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
🙏
npm i ngx-pipes
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
still a problem
@nerumo
npm i -S lodash-es
import { Pipe, PipeTransform } from '@angular/core';
import { orderBy as _orderBy } from 'lodash-es';
@Pipe({
name: 'orderBy',
standalone: true,
})
export class NgxOrderPipe<T> implements PipeTransform {
transform(data: T[], orderBy: string, direction: 'asc' | 'desc' = 'asc'): T[] {
return _orderBy(data, orderBy, direction);
}
}
@nerumo
npm i -S lodash-es
import { Pipe, PipeTransform } from '@angular/core'; import { orderBy as _orderBy } from 'lodash-es'; @Pipe({ name: 'orderBy', standalone: true, }) export class NgxOrderPipe<T> implements PipeTransform { transform(data: T[], orderBy: string, direction: 'asc' | 'desc' = 'asc'): T[] { return _orderBy(data, orderBy, direction); } }
If this is the course of action you suggest, then this repository should be archived
@nerumo This is a quickfix for most usecases. I would rather takeover this repo, since the original author is not answering anymore. However if I get some time soon, I'll otherwise create a new library for this.
Fixed by version 3.0.0