I wrote my own filter pipe as it disappeared in angular2:
import {Pipe, PipeTransform} from \'angular2/core\'; @Pipe({ name: \'myFilter\' }) export class
You still must call the filter a second time but you can use it directly like this :
{{ (customerData | myFilter:searchTerm)?.length }}