title: AngularJS $filter in controller with or condition for same attribute
body: <p><strong>controller:</strong></p>
  
  <pre><code>var myApp = angular.module('myApp', []);
  
  myApp.controller('myCtrl', ['$scope', '$filter', function($scope, $filter){
  
      $scope.tickets = [
                        {title : 'ticket1', assignee : {id:'pratap', name: 'PRATAP'}},
                        {title : 'ticket2', assignee : null},
                        {title : 'ticket3', assignee : {id:'ak', name: 'AK'}}
                        ];    
  
      $scope.defaultOption = 1;
      $scope.options = [
                        {id:1, name : 'MY TICKETS'},
                        {id:2, name : 'OTHERS TICKET'}
                        ];
  
      $scope.filteredTicket = [];
  
      $scope.filterData = function(criteria) {
          if (criteria == 1) {
              $scope.filteredTicket = $filter('filter')($scope.tickets, {assignee: {id:'pratap'}});
          } else {
              $scope.filteredTicket = $filter('filter')($scope.tickets, {assignee: null, assignee: {id:'ak'}});
              console.log($scope.filteredTicket);
          }
  
  
      };
  
      $scope.filterData($scope.defaultOption);
  
  }]);
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;div ng-controller="myCtrl"&gt;
  &lt;div&gt;Current User: pratap&lt;/div&gt;
  &lt;div&gt;
      FILTER: &lt;select ng-model="defaultOption" ng-change="filterData(defaultOption)" ng-options="option.id as option.name for option in options"&gt;&lt;/select&gt;
  &lt;/div&gt;
      &lt;div&gt;
          &lt;h1&gt;Tickets&lt;/h1&gt;
          &lt;ul&gt;
              &lt;li ng-repeat="ticket in filteredTicket"&gt;{{ticket.title}}&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;  
  &lt;/div&gt;  
  </code></pre>
  
  <p>I would like to know if it is possible to use same object attribute to form or condition in $filter, something like below </p>
  
  <pre><code>$scope.filteredTicket = $filter('filter')($scope.tickets, {assignee: null, assignee: {id:'ak'}});
  </code></pre>
  
  <p>so that I get both object which has assignee:null and assignee:'ak'. If I select OTHERS TICKETS I need to dispplay ticket2 and ticket3, but as of now I am getting only ticket3.</p>
  
  <p>Can some one please help??</p>
  
  <p><strong><a href="https://plnkr.co/edit/7K69ONkaxx79S8nabgVI?p=preview" rel="nofollow">Created-Plunker-Here</a></strong></p>