How to apply filters to *ngFor?

前端 未结 23 1251
無奈伤痛
無奈伤痛 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:55

    I'm not sure when it came in but they already made slice pipe that will do that. It's well documented too.

    https://angular.io/docs/ts/latest/api/common/index/SlicePipe-pipe.html

    {{ feature.description }}

提交回复
热议问题