angularjs - Disable ng-table pager buttons while data is loading? -


is there way disable pagination/pager buttons while data asynchronously loaded data service? have temporary solution including jquery goes

$(".ng-table-pager button").attr("disabled", true); 

and on data loaded turn false find it's poor solution thankful if nudge me right direction.

you have create 1 boolean variable in controller, example -

var isloading = false;

then set it's value true before calling api (service) , false after finish calling api controller.

now in view have this:

div ng-disabled="isloading"> !--your pagination/pager buttons --> /div>

i hope clear idea.


Comments