Question from github:
https://github.com/HubSpot/pace/issues/154
I'm trying to get pace to work with my angularjs app. Everything works fine with page loads but when I make a $http call pace doesn't show the progress. Any ideas?
I tried using this library but it isn't as configurable as I would like, it does however with with $http. https://github.com/chieffancypants/angular-loading-bar
Try loading the following options before including pace.js in your index.html
window.paceOptions = {
document: true, // disabled
eventLag: true,
restartOnPushState: true,
restartOnRequestAfter: true,
ajax: {
trackMethods: [ 'POST','GET']
}
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.