Skip to content

Commit

Permalink
Merge branch 'master' of github.com:chieffancypants/angular-loading-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Savater Sebastien committed Apr 11, 2017
2 parents fab2d44 + 73ff0d9 commit a03296f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,13 @@ angular.module('myApp', ['angular-loading-bar'])
<div id="loading-bar-container"></div>
```

Also keep in mind you'll likely want to change the CSS to reflect it's new position, so you'll need to override the default CSS:
```css
#loading-bar .bar {
position: relative;
}
```

#### Latency Threshold
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:

Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "0.9.0",
"description": "An automatic loading bar for AngularJS",
"main": "index.js",
"files": [
"build/loading-bar.js",
"build/loading-bar.css"
],
"style": "build/loading-bar.css",
"directories": {
"example": "example",
Expand Down

0 comments on commit a03296f

Please sign in to comment.