Description

Returns the first filter object from the query or facet that matches the name and optionally the value also

Usage

In HTML Template Binding

{{ hasFilter_expression | hasFilter:field[:value] }}

In JavaScript

$filter('hasFilter')(query, field[, value])

Parameters

ParamTypeDetails
querystringThe query object
fieldnumberThe name of the filter
value (optional)numberThe value of the filter