I will fully approximate here.
<pagination direction-links="false" boundary-links="true" total-items="totalItems" ng-model="currentPage"></pagination>
If your page has something similar, you can change it to something like this if your search form is called "searchForm":
<pagination ng-class="{true:'', false:'disable'}[(searchForm.$valid)]" direction-links="false" boundary-links="true" total-items="totalItems" ng-model="currentPage"></pagination>
where disable is some CSS class that customizes pagination controls to make them disabled.
OR:
<pagination ng-if="!searchForm.$valid" direction-links="false" boundary-links="true" total-items="totalItems" ng-model="currentPage"></pagination>
Use ng-if or ng-show / hide to switch the visibility of controls if the form is invalid.
source share