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
+9-2Lines changed: 9 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# Changelog
2
2
3
+
## v3.0.0
4
+
5
+
- All existing deprecations have been removed.
6
+
- BC breaks =>
7
+
-``SpinnerComponent`` has been renamed to ``NgHttpLoaderComponent``.
8
+
- The ``<spinner>`` component-selector has been renamed to ``<ng-http-loader>``.
9
+
3
10
## v2.3.0
4
11
5
12
This release adds the possibility to filter HTTP requests that should not be handled by the interceptor by providing an array of HTTP headers to the component's ``filteredHeaders`` property.
@@ -14,10 +21,10 @@ This release introduces the **minimum duration** option. It gives the possibilit
14
21
You can mix this parameter with the **debounce delay** option:
This package provides an HTTP Interceptor, and a spinner component (All from [SpinKit](https://github.com/tobiasahlin/SpinKit) at the moment).
26
+
This package provides an HTTP Interceptor, and some spinner components (All from [SpinKit](https://github.com/tobiasahlin/SpinKit) at the moment).
27
27
The HTTP interceptor listens to all HTTP requests and shows a spinner / loader indicator during pending http requests.
28
28
29
29
## Angular 4 / Angular 5 / Angular 6
@@ -41,7 +41,7 @@ If you experience errors like below, **please double check the version you use.*
41
41
42
42
## Requirements - HttpClientModule
43
43
44
-
Performing http requests with the ``HttpClientModule`` API is **mandatory**. Otherwise,the spinner will not be fired **at all**.
44
+
Performing http requests with the ``HttpClientModule`` API is **mandatory**. Otherwise,the spinner will not be fired **at all**.
45
45
46
46
See this [blog post](http://blog.ninja-squad.com/2017/07/17/http-client-module/) for an ``HttpClientModule`` introduction.
47
47
@@ -74,19 +74,19 @@ export class AppModule { }
74
74
75
75
In your app.component.html, simply add:
76
76
```xml
77
-
<spinner></spinner>
77
+
<ng-http-loader></ng-http-loader>
78
78
```
79
79
80
80
## Customizing the spinner
81
81
82
82
You can customize the **background-color**, the **spinner type**, the **debounce delay** (ie. after how many milliseconds the spinner will be visible, if needed), the **minimum duration** (ie. how many milliseconds should the spinner be visible at least):
83
83
```xml
84
-
<spinner
84
+
<ng-http-loader
85
85
[backgroundColor]="'#ff0000'"
86
86
[spinner]="spinkit.skWave"
87
87
[debounceDelay]="100"
88
88
[minDuration]="300">
89
-
</spinner>
89
+
</ng-http-loader>
90
90
```
91
91
92
92
**_To use this syntax, you must reference the ``Spinkit`` const as a public property in your app.component.ts_**:
@@ -110,7 +110,7 @@ The different spinners available are referenced in [this class](src/lib/spinkits
110
110
**_Otherwise, you can simply reference the chosen spinner as a simple string_**:
You can find some short examples [here](https://gist.github.com/mpalourdio/2c0bec03d610b24ff49db649fbb69a48) and [here](https://gist.github.com/mpalourdio/e05b4495de2abeeecfcf92d70e4ef93e).
@@ -131,22 +131,22 @@ You can find some short examples [here](https://gist.github.com/mpalourdio/2c0be
131
131
132
132
You can filter the http requests that shouldn't be caught by the interceptor by providing **an array of regex patterns**:
You can manually show and hide the spinner component if needed. You must use the ``SpinnerVisibilityService`` for this purpose.
149
+
You can manually show and hide the spinner if needed. You must use the ``SpinnerVisibilityService`` for this purpose.
150
150
151
151
Sometimes, when manually showing the spinner, an http request could be performed in background, and when finished, the spinner would automagically disappear.
0 commit comments