Skip to content

Commit 831d1b0

Browse files
bump version 0.4.2
1 parent 61cf753 commit 831d1b0

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Changelog
22
==========
33

4+
## 0.4.2
5+
- Split loading bar into different modules so they can be included separately ([#46](https://github.com/chieffancypants/angular-loading-bar/issues/46))
6+
47
## 0.4.1
58
- Fix for route views defined on body where loading bar is also attached ([#56](https://github.com/chieffancypants/angular-loading-bar/issues/56))
69

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is mostly cool because you simply include it in your app, and it works. Th
1212

1313
## Usage:
1414

15-
1. include the loading bar as a dependency for your app. If you want animations, include `ngAnimate` as well.
15+
1. include the loading bar as a dependency for your app. If you want animations, include `ngAnimate` as well. *note: ngAnimate is optional*
1616

1717
```js
1818
angular.module('myApp', ['angular-loading-bar', 'ngAnimate'])
@@ -98,19 +98,19 @@ $http.get('/status', {
9898

9999

100100
## How it works:
101-
This library is split into two components, an $http `interceptor`, and a `service`:
101+
This library is split into two modules, an $http `interceptor`, and a `service`:
102102

103103
**Interceptor**
104-
The interceptor simply listens for all outgoing XHR requests, and then instructs the loadingBar service to start, stop, and increment accordingly. There is no public API for the interceptor.
104+
The interceptor simply listens for all outgoing XHR requests, and then instructs the loadingBar service to start, stop, and increment accordingly. There is no public API for the interceptor. It can be used stand-alone by including `cfp.loadingBarInterceptor` as a dependency for your module.
105105

106106
**Service**
107107
The service is responsible for the presentation of the loading bar. It injects the loading bar into the DOM, adjusts the width whenever `set()` is called, and `complete()`s the whole show by removing the loading bar from the DOM.
108108

109109
## Service API (advanced usage)
110-
Under normal circumstances you won't need to use this. However, if you wish to use the loading bar without the interceptor, you can do that as well. Simply include the loading bar service as a dependency instead of the interceptor in your angular module:
110+
Under normal circumstances you won't need to use this. However, if you wish to use the loading bar without the interceptor, you can do that as well. Simply include the loading bar service as a dependency instead of the main `angular-loading-bar` module:
111111

112112
```js
113-
angular.module('myApp', ['cfpLoadingBar'])
113+
angular.module('myApp', ['cfp.loadingBar'])
114114
```
115115

116116

@@ -139,8 +139,4 @@ cfpLoadingBar.complete()
139139
Credit goes to [rstacruz](https://github.com/rstacruz) for his excellent [nProgress](https://github.com/rstacruz/nprogress).
140140

141141
## License:
142-
Licensed under the MIT license
143-
144-
145-
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/chieffancypants/angular-loading-bar/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
146-
142+
Licensed under the MIT license

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-loading-bar",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"main": ["src/loading-bar.js", "src/loading-bar.css"],
55
"ignore": [
66
"**/.*",

build/loading-bar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-loading-bar v0.4.1
2+
* angular-loading-bar v0.4.2
33
* https://chieffancypants.github.io/angular-loading-bar
44
* Copyright (c) 2014 Wes Cruver
55
* License: MIT

build/loading-bar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-loading-bar v0.4.1
2+
* angular-loading-bar v0.4.2
33
* https://chieffancypants.github.io/angular-loading-bar
44
* Copyright (c) 2014 Wes Cruver
55
* License: MIT

build/loading-bar.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/loading-bar.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-loading-bar",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "An automatic loading bar for AngularJS",
55
"main": "src/loading-bar.js",
66
"directories": {
@@ -31,7 +31,6 @@
3131
"karma-firefox-launcher": "~0.1.0",
3232
"karma-html2js-preprocessor": "~0.1.0",
3333
"karma-jasmine": "~0.1.3",
34-
"karma-requirejs": "~0.1.0",
3534
"karma-coffee-preprocessor": "~0.1.0",
3635
"karma-phantomjs-launcher": "~0.1.0",
3736
"karma": "~0.10.2",

0 commit comments

Comments
 (0)