Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.
Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.
Stats
| Reputation: | 411 |
| Pageviews: | 136.5K |
| Articles: | 1 |
| Comments: | 4 |
Comments
Oct 14, 2019 · han huynh
It's quite complicated than I've thought, please keep us posted if you have a solution for this
Oct 13, 2019 · han huynh
But i found out with async pipe, somehow nested our nested custom pipe inside it will not work efficiently as expected
I`d recommend we handle the get async data process inside the component and handle the subscription by our own to leverage the advantage of custome pipe
Just created another brand for this situation, added sorting pipe and async get data . You can take a look
https://github.com/truonghan0812/tutorials/tree/custom-pipe-async/src
Oct 13, 2019 · han huynh
Could you try this, notice the custome pipe will be on the right hand side of async pipe:
<tr *ngFor="let member of dataFromServer$ | async | sortBy:'asc':'point' ; index as i">
Oct 12, 2019 · han huynh
Thanks for reading my article,
I really not sure about what is your situation, seems like you may want to try with Async Pipe
https://angular.io/api/common/AsyncPipe
If it's not the case, please post a sample code just to make sure I understand your question