start pace.js right after click button for call ajax and $http

884 Views Asked by At

I have used pace.js as my progress bar but it is shown only when page loads or reloads and the times when it wants to load data received from ajax or $http calls, not before that. what should I do to start pace right after click button?

1

There are 1 best solutions below

0
Nsubuga Kasozi On

Just found out from the API doc that you can use the Pace.restart() function on button click e.g `