How would I apply a multiple filter to my content on a ng-repeat when a checkbox gets checked and remove the filter when the checkbox isn't?
The data is an object containing multiple entries of:
{
keyword: 'word',
description: 'this is a description',
category: 'Concept'
}
I have 7 categories which can be used all at once or individually to filter my results.I will only want to target the category of the object for filtering. Therefore I could check 'Concepts' and 'Stakeholders' and only show any words relating to these. These categories are created from a list in the DB.
<li ng-repeat="decks in categories">
<input type="checkbox" id="{{decks.deckName}}" class="vis-hidden" />
<label for="{{decks.deckName}}" class="noselect">{{decks.deckName}}</label>
</li>
I am having problems trying to figure this out.
<article ng-repeat="entry in entries | filter: filterCategorys | filter:liveSearch ">
Any idea's?