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

my plunker demo

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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -