Answer the question
In order to leave comments, you need to log in
Why is filter not working in angularjs?
Hello, I can't figure out why the filter in angularjs doesn't work
Filter is called on click
<span ng-click="typeFilter = {type:4}">Летние виды спорта</span>
<div class="items" ng-repeat="object in $ctrl.objects |filter: typeFilter ">
$scope.typeFilter={};
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