Skip to content

Commit d214b99

Browse files
Merge pull request chieffancypants#232 from abachuk/master
Adding spinnerTemplate example to README.md
2 parents 432fcdf + 60255eb commit d214b99

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ angular.module('myApp', ['angular-loading-bar'])
7979
}])
8080
```
8181

82+
#### Customize the template:
83+
If you'd like to replace the default HTML template you can configure it by providing inline HTML as a string:
84+
85+
```js
86+
angular.module('myApp', ['angular-loading-bar'])
87+
.config(['cfpLoadingBarProvider', function(cfpLoadingBarProvider) {
88+
cfpLoadingBarProvider.spinnerTemplate = '<div><span class="fa fa-spinner">Loading...</div>';
89+
}])
90+
```
91+
8292
#### Latency Threshold
8393
By default, the loading bar will only display after it has been waiting for a response for over 100ms. This helps keep things feeling snappy, and avoids the annoyingness of showing a loading bar every few seconds on really chatty applications. This threshold is totally configurable:
8494

0 commit comments

Comments
 (0)