-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The pipe 'orderBy' could not be found #51
Comments
What version of |
1.2.1 |
I'm confused, why would you pass a console.log(this.orderPipe.transform(this._danePgee2017Service, this.order)); If you comment this line out, does it show you the same error? Take a look at the example project: |
I change my appComponent to something closer to your example, but now i have an error: "Cannot read property 'slice' of undefined":
|
i've released new version In order to make it work change your code to: this._danePgee2017Service.getPgee2017().subscribe((response) => {
this.pgee2017 = orderPipe.transform(response, 'msc');
}); |
Great! Works good now. Thank you! I have one additional question: in 'msc" column I have numbers from 1 to 55 (this is place in classification) and string "ns" which means "unclassified". When I try to sort it, column goes crazy and I receive different order after every single click. Starting position is always the same, but not good, because after 32 I have: 34, 35, 36, 37, 38, 39, ns, ns, ..., ns, 33, 40, 41, 42, .... Is there any solution to sort it right or this is not possible to mix numbers and strings values? |
Closing this for now, since your original issue is solved. Could you show me how your data looks like and which field should be sorted? |
Field "MSC" should be sorted.
|
First of all thank you for great work with pipe, I would love to use it, but I have an error "The pipe 'orderBy' could not be found". I've tried to do this with your ngx-order-pipe example, but it's not working. Order Module is imported in app.module.ts. My code:
html:
appComponent:
I would be grateful for help. Cheers.
The text was updated successfully, but these errors were encountered: