Answer the question
In order to leave comments, you need to log in
How to make filters dynamic angular js?
That is, so that when outputting, do not do HTML in advance.
For example, when displaying some categories
<div class="item" ng-repeat="item in teams | filter: {c_name :'Food'}" ng-show="items">
<div class="row">
</div>
</div>
<div class="item" ng-repeat="item in teams | filter: {c_name :'clothing'}" ng-show="items">
<div class="row">
</div>
</div>
<div class="item" ng-repeat="item in teams | filter: {c_name :'и так далее'}" ng-show="items">
<div class="row">
</div>
</div>
<div class="item" ng-repeat="item in teams | filter: {c_name :'функция супер динамичная'}" ng-show="items">
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