title: How to delay ng-keyup call in angular JS
body: <p>keyup in build directive of angular for filtering the record but I want to delay the function call so user can enter the full word and call can go to DB and fetch the record instead of single word. my line of code is </p>
  
  <pre><code>  &lt;input ng-show="!$scope.noRPData" type="text" ng-keyup="filterRP($event)" class="filterRP form-control" id="txtFilterID" ng-model="rpFilter.ModifiedDate.value" /&gt;
  </code></pre>
  
  <p>filterRP is the function for which I want to delay the call by 4 second. Please suggest</p>