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
<input ng-show="!$scope.noRPData" type="text" ng-keyup="filterRP($event)" class="filterRP form-control" id="txtFilterID" ng-model="rpFilter.ModifiedDate.value" />
filterRP is the function for which I want to delay the call by 4 second. Please suggest
timeoutin youfilterRP()