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

preview_player
Показать описание
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.

Рекомендации по теме
Комментарии
Автор

Is it better to do search this way vs in the video "Implementing Search Functionality | Data Binding" where you use an *ngIf condition to filter data?

blackoutapp
Автор

getter and setter possible for ngmodel property name ?

narenderkonka
Автор

Wheat is the use of setter and getter functions in this case?

Abk
Автор

explain the difference between filterText and _filterText

muhammadkashanfayyaz
Автор

Can u explain the pagination concept using Angular

sivaprasad
Автор

Can't we directly do it on the students array . Why r we creating a duplicate array of students array???

Chakree
visit shbcf.ru