Dismiss
Announcing Stack Overflow Documentation

We started with Q&A. Technical documentation is next, and we need your help.

Whether you're a beginner or an experienced developer, you can contribute.

Sign up and start helping → Learn more about Documentation →

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?

share|improve this question
    
instead create one custom filter where you can pass array of items which you have checked in and then do filter. got idea ? – nitz Jul 28 at 13:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.