Skip to content

Commit 3da87ec

Browse files
committed
Prepare README and CHANGELOG for v0.7.x
1 parent c31279a commit 3da87ec

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v0.7.0
4+
5+
This release adds the ``entryComponent`` property. It allows to specify your own component instead of the built-in ones. It uses the [NgComponentOutlet](https://angular.io/api/common/NgComponentOutlet) feature.
6+
7+
See [Defining your own spinner](https://github.com/mpalourdio/ng-http-loader#defining-your-own-spinner) section.
8+
39
## v0.6.0
410

511
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.

README.MD

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,18 @@ The different spinners available are referenced in [this class](src/spinkits.ts)
136136
<spinner backgroundColor="#ff0000" spinner="sk-wave"></spinner>
137137
```
138138

139+
## Defining your own spinner
140+
141+
You can define your own component instead of the built-in ones. The steps are:
142+
143+
- Create your own component
144+
- Add it to the [entryComponent](https://angular.io/guide/ngmodule-faq#what-is-an-entry-component) definition in your module
145+
- Reference your component in a public property in your ``app.component.ts``
146+
- Reference the property in the spinner component like this :
147+
```xml
148+
<spinner [entryComponent]="myAwesomeComponent"></spinner>
149+
```
150+
139151
## Requests filtering
140152

141153
You can also filter the http requests that shouldn't be caught by the interceptor by providing **an array of regex patterns**:

0 commit comments

Comments
 (0)