You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -145,6 +145,17 @@ cfpLoadingBar.complete()
145
145
146
146
```
147
147
148
+
## Events
149
+
The loading bar broadcasts the following events over $rootScope allowing further customization:
150
+
151
+
**`cfpLoadingBar:loading`** triggered upon each XHR request that is not already cached
152
+
153
+
**`cfpLoadingBar:loaded`** triggered each time an XHR request recieves a response (either successful or error)
154
+
155
+
**`cfpLoadingBar:started`** triggered once upon the first XHR request. Will trigger again if another request goes out after `cfpLoadingBar:completed` has triggered.
156
+
157
+
**`cfpLoadingBar:completed`** triggered once when the all XHR requests have returned (either successfully or not)
158
+
148
159
## Credits:
149
160
Credit goes to [rstacruz](https://github.com/rstacruz) for his excellent [nProgress](https://github.com/rstacruz/nprogress).
0 commit comments