Can I remove the filter using the checkbox?
If the checkboxes are checked, the filters inside ng-repeat will be disabled. For example, if countryfilter and winetypefilter are checked , related filters will be disabled.
Source code (filters included)
<li ng-repeat="wine in wines | winetypefilter:winetypes| countryfilter:countrytypes | stylefilter:styletypes">
{{wine.name}} is a {{wine.type}} with {{wine.style}} style from {{wine.country}}
</li>
(filters are disabled using the flags, countryfilter and winetypefilter ). Result:
<li ng-repeat="wine in wines | stylefilter:styletypes">
{{wine.name}} is a {{wine.type}} with {{wine.style}} style from {{wine.country}}
</li>
source
share