title: Angular filter: how to get filter complete callback?
body: <p>I am looking for an callback function after $filter filter completes the filtering the data</p>
  
  <p>HTML </p>
  
  <pre><code>&lt;input type="text" ng-model="searchvalue"&gt;
  &lt;span ng-click="searchbtn()"&gt;Search&lt;/span&gt;
  </code></pre>
  
  <p>JS</p>
  
  <pre><code>$scope.searchbtn = function() {
    $scope.loading = true;
    $scope.mysearchvalue = $scope.searchvalue;
  }
  </code></pre>
  
  <p>When user enters keyword my data will be filtered and i need a callback function after filtering the data.</p>
  
  <p>i have tried using "DOMSubtreeModified" but returning continues logs</p>
  
  <pre><code>var myElement = angular.element(document.getElementById("mycontent"));
  myElement.bind("DOMSubtreeModified", function() {
    console.log("keep outputting this message");
  });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ivE2l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ivE2l.png" alt="enter image description here"></a></p>