Angular's filter function uses a pattern object to filter specific properties on objects contained by the array. We want an exact match instead, which has to be done by means of a function.