I have a list of strings that I want to iterate through, but I want to be able to filter them using a search term. Like this:
<div *ngFor="#item in list | search: searchTerm">{{ item }}</div>
My question is: how can I check if the pipe returns an empty subset of the list?
In other words if none of the strings matches the search term, I want to display a message saying: "No matches".