How to apply filters to *ngFor?

前端 未结 23 1239
無奈伤痛
無奈伤痛 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 04:12

    Ideally you should create angualr 2 pipe for that. But you can do this trick.

    
        {{item}}

提交回复
热议问题