I am facing an issue with a large dataset containing over 4000 items. Whenever I start typing, my browser freezes for up to 15 seconds. To resolve this problem, I want to disable the auto-filter feature and only apply the filter function when a button is clicked. Despite searching on Google, I couldn't find a solution. Can someone help me please? :)
Code:
<input ng-model="search.phone" type="text" placeholder="Phone...">
<input ng-model="search.name" type="text" placeholder="Name...">
<input ng-model="search.city" type="text" placeholder="City...">
<div ng-repeat="user in users | filter:search" class="user_block" ng-include src="userTemplate"></div>
and controller:
app.controller("smsCtrl", ['$scope', 'smsData', 'createDialog', '$http', '$filter', function($scope, smsData, createDialog, $http, $filter){...}