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
A simple solution that works with Angular 6 for filtering a ngFor, it's the following:
your code
Spans are useful because does not inherently represent anything.