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: CHANGELOG.MD
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,15 @@
1
+
# Changelog
2
+
3
+
## v0.6.0
4
+
5
+
This release adds the ``debounceDelay`` parameter (default is 0). It allows to discard the spinner for fast and repeated http requests, which can be annoying under some conditions.
6
+
7
+
See [customization](https://github.com/mpalourdio/ng-http-loader#customizing-the-spinner)
8
+
9
+
The library footprint has been reduced by minifying templates and stylesheets before inlining them.
10
+
11
+
The library now takes advantage of [RxJS lettable operators](https://github.com/ReactiveX/rxjs/blob/master/doc/lettable-operators.md)
12
+
1
13
## v0.5.1
2
14
3
15
This release fixes a bug that could cause the spinner to not show if an http request were performed **before** the spinner component was initialized.
This package provides an HTTP Interceptor, and a spinner component (All from [SpinKit](https://github.com/tobiasahlin/SpinKit) at the moment).
20
-
The HTTP interceptor listens to all HTTP requests and shows a spinner during pending requests.
20
+
The HTTP interceptor listens to all HTTP requests and shows a spinner / loader indicator during pending http requests.
21
21
22
22
## Angular 4 / Angular 5
23
23
24
-
The latest compatible module version with angular 4 is **``0.3.4``**.
25
-
If you want to use Angular 5, use **``^0.5.0``**.
24
+
The latest module version compatible with angular 4 is **``0.3.4``**.
25
+
If you want to use Angular 5, use versions **``0.4.0``** and above.
26
26
27
27
If you experience errors like below, **please double check the version you use.**
28
28
29
29
``ERROR in Error: Metadata version mismatch for module [...]/angular/node_modules/ng-http-loader/ng-http-loader
30
-
.module.d.ts, found version 4, expected 3, resolving symbol AppModule in [...]/angular/src/app.module.ts``
31
-
30
+
.module.d.ts, found version x, expected y, resolving symbol AppModule in [...]/angular/src/app.module.ts``
32
31
33
-
## Requirements
32
+
## Requirements - HttpClientModule
34
33
35
-
Compatible with Angular 4.3+. Performing http requests with the new API from ``HttpClientModule`` is **mandatory**. Otherwise,
36
-
the spinner will not be fired **at all**.
34
+
Performing http requests with the ``HttpClientModule`` API is **mandatory**. Otherwise,the spinner will not be fired **at all**.
37
35
38
-
## HttpClientModule
39
-
40
-
All http requests **MUST** be performed with the new ``HttpClientModule`` available from ``angular 4.3``. See this [blog post](http://blog.ninja-squad.com/2017/07/17/http-client-module/) as reference.
36
+
See this [blog post](http://blog.ninja-squad.com/2017/07/17/http-client-module/) for an ``HttpClientModule`` introduction.
41
37
42
38
## Usage
43
39
@@ -93,19 +89,24 @@ import { NgHttpLoaderServicesModule } from 'ng-http-loader/services/ng-http-load
93
89
exportclassAppModule { }
94
90
```
95
91
96
-
In your app.component.html, add :
92
+
In your app.component.html, simply add :
97
93
```xml
98
94
<spinner></spinner>
99
95
```
100
96
101
97
## Customizing the spinner
102
98
103
-
You can customize the background-colorand the spinner type:
99
+
You can customize the **background-color**, the **spinner type**and the **debounce delay** (ie. after how many milliseconds the spinner will be displayed, if needed):
0 commit comments