angularjs - filtering in angular by select and checkbox -
want filter out values both select box , in checkbox achieved in select box can't able checkbox
example here. use single object checkboxes, , can use comparator function in filter, this:
$scope.checkmake = function(value) { //assume no filter applied value shown. var result = true; (var in $scope.selected) { if ($scope.selected[i] === true) { //if here, know filter applied, //check see if passed value 1 of selected //checkboxes result = $scope.selected[value]; break; } } return result; }
Comments
Post a Comment