Answer the question
In order to leave comments, you need to log in
How to make a filter using checkboxes in Angular?
There is json with objects, each object has a category parameter. The html page has checkboxes with these categories.
How to filter the output to only show objects that have one of the checked categories. With broadcast?
It only comes out like this:
<select ng-model="cat">
<option>...</option>
...
</select>
<div ng-repeat="product in products | filter:{category:cat}">
...
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question