In this video we will discuss implementing a filter pipe in Angular. Angular team recommends not to use pipes to filter and sort data. This is because a filtering and sorting pipe can significantly impact the performance of the application if not implemented carefully. To better understand the performance implications, let's implement a custom pipe to filter data. We discussed creating custom pipes in detail in Part 19 of Angular 2 tutorial.
Link to creating custom pipes video
Linke to Angular 2 playlist
For the code used in the demo, please refer to the following URL
As you can see we implemented filtering using a pipe and everything seems to be working fine. So the question that comes to our mind is,
Why did the Angular team recommend not to use pipes to filter and sort data
Well, that's because a filtering and sorting pipe can significantly impact the performance of the application.
We will discuss these performance implications and the recommended approach to filter and sort data in our next video.
Text version of the video
Angular CRUD Tutorial
Angular CRUD Tutorial Text Articles & Slides
All Dot Net and SQL Server Tutorials in English
All Dot Net and SQL Server Tutorials in Arabic