VadimDez / ngx-order-pipe

▼ Angular 5+ orderBy pipe
https://vadimdez.github.io/ngx-order-pipe/
MIT License
243 stars 57 forks source link

orderBy not found #59

Closed miteshpatekar closed 4 years ago

miteshpatekar commented 6 years ago

Hi VadimDez,

Thanks for this tool.

I tried your steps mentioned using version "ngx-order-pipe": "^2.0.1". also included the module as mentioned, but I get this error- The orderBy in component.html is not found.

When I use the OrderPipe in component.ts it works and I am able to sort using the line- this.notifications = this.orderPipe.transform(data, 'title')

only when i use it as - <div class="row tablerow" *ngFor="let notification of notifications | orderBy: order:reverse:'case-insensitive'; let i=index" (click)="expandRow(i)"> it says orderBy could not be found.

It seems the html could not find orderPipe module. I also tried importing OrderPipe into main module, but that didn't work too !

Thanks, Mitesh

arseneoaa commented 6 years ago

I had the same issue and it was because I had imported the OrderModule in my root module app.module.ts and not in the module of the component that was using it.

jeroldjoel commented 4 years ago

Still Its not working

stale[bot] commented 4 years ago

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.