Data Filtering in Angular Component | Angular Pipes | Angular 12+

Опубликовано: 17 October 2024
на канале: procademy
46,127
313

In last two lectures we learned what are pure and impure pipes in Angular and why we should not use pipes for data filtering or sorting. Now the question is if we should not use pipes for data filtering or sorting then how should we actually implement filtering and sorting data in angular?

The answer is, we can write the data filtering and sorting logic in the component class itself. In this lecture you will learn implementing the data filter logic in an Angular component, so that, we have better control on when that code should and shouldn't execute.

SOURCE CODE FOR THIS SECTION: https://drive.google.com/file/d/11f5j...