When trying to implement the orderBy pipe in ngFor along with async pipe, I encountered an error as follows:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
The pipe 'orderBy' could not be found ("
</div>
<div
*ngFor="let a of arr | async | orderBy: 'b': ng:///TestModule/TestComponent.html@95:34
Error: Template parse errors:
The pipe 'orderBy' could not be found ("
</div>
<div
The issue arises when attempting to use the orderBy pipe on observables returned by arr. It works fine without orderBy, but throws an error when trying to incorporate it:
<div *ngFor="let a of arr | async | orderBy: 'b'> </div>