How to apply filters to *ngFor?

前端 未结 23 1586
無奈伤痛
無奈伤痛 2020-11-22 03:44

Apparently, Angular 2 will use pipes instead of filters as in Angular1 in conjunction with ng-for to filter results, although the implementation still seems to be vague, wit

23条回答
  •  野性不改
    2020-11-22 03:51

    After some googling, I came across ng2-search-filter. In will take your object and apply the search term against all object properties looking for a match.

提交回复
热议问题