title: ng-repeat filter by function
body: <p>I'm trying to use a filter on my ng-repeat that is a function that has a parameter passed in, however the filter doesn't seem to work.</p>
  
  <p>This is the filter function that i am using. It compares 2 arrays to see what matches in each then should return true or false.</p>
  
  <pre><code>$scope.ifinfav1 = function(f){
    return e.indexOf(f) !== -1;
  };
  </code></pre>
  
  <p>This is my HTML where the filter is being used.</p>
  
  <pre><code>&lt;ion-view view-title="Favourites"&gt;
      &lt;ion-content&gt;
          &lt;ion-list&gt;
          &lt;ion-item id="fav" class="item-icon-right" collection-repeat="office in offices|filter:ifinfav1(office.id)" ng-controller="ModalCtrl" ng-click="openModal(office.id); lastview(office.id);"&gt;
              &lt;p&gt;{{office.id}}&lt;/p&gt;
              &lt;p id="details"&gt;{{office.LocAddressLine1 + ", " + office.LocAddressLine2 + ", " + office.LocCity + ", " + office.LocCountryDescription + ", " + office.LocZipPostalCode}}&lt;/p&gt;
              &lt;i ng-class="{'icon ion-android-star': liked(office.id), 'icon ion-android-star-outline': liked(office.id)}" ng-click="togglefav(office.id); $event.stopPropagation();"&gt;&lt;/i&gt;
          &lt;/ion-item&gt;
          &lt;/ion-list&gt;
      &lt;/ion-content&gt;
  &lt;/ion-view&gt;
  </code></pre>