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
* Be able to change color and size of logo, spinners and progress bar
23
23
* Be able to change the direction of progress bar
24
24
25
-
## Demo
25
+
## Table Of Contents
26
+
-[Demo](#demo)
27
+
-[Installation](#installation)
28
+
-[Getting Started](#getting_started)
29
+
-[Usage](#usage)
30
+
-[API - NgxUiLoaderService](#api_service)
31
+
-[Custom Configuration](#configuration)
32
+
-[Input options](#input_options)
33
+
-[Automatically show loader for router events](#router_events)
34
+
-[Changelog](#changelog)
35
+
-[Credits](#credits)
36
+
-[License](#license)
37
+
38
+
39
+
<aname="demo"></a>
40
+
41
+
## Demo <aname="demo"></a>
26
42
27
43
Live demo [here](https://ngx-ui-loader-demo.stackblitz.io).
28
44
29
45
Play with **ngx-ui-loader**[here](https://stackblitz.com/edit/ngx-ui-loader-demo) on stackblitz.
30
46
31
-
## Installation
47
+
48
+
## Installation <aname="installation"></a>
32
49
33
50
Install `ngx-ui-loader` via NPM, using the command below.
34
51
@@ -37,7 +54,11 @@ Install `ngx-ui-loader` via NPM, using the command below.
37
54
```shell
38
55
npm install --save ngx-ui-loader
39
56
```
40
-
## Getting started
57
+
58
+
59
+
<aname="getting_started"></a>
60
+
61
+
## Getting started <aname="getting_started"></a>
41
62
42
63
Import the `NgxUiLoaderModule` in your root application module `AppModule`:
43
64
@@ -66,7 +87,10 @@ export class AppModule { }
66
87
67
88
```
68
89
69
-
## Usage
90
+
91
+
<aname="usage"></a>
92
+
93
+
## Usage <aname="usage"></a>
70
94
71
95
After importing the `NgxUiLoaderModule`, use `ngx-ui-loader` component in your root app template:
72
96
@@ -107,7 +131,9 @@ export class AppComponent implements OnInit {
107
131
108
132
```
109
133
110
-
## NgxUiLoaderService service
134
+
<aname="api_service"></a>
135
+
136
+
## API - NgxUiLoaderService <aname="api_service"></a>
111
137
112
138
*`NgxUiLoaderService.start([id]='default')` Starts a foreground loader with progress bar. Users cannot interact with the page when the loader is showed.
113
139
*`NgxUiLoaderService.stop([id]='default')` Stops a foreground loader with progress bar.
@@ -117,7 +143,10 @@ export class AppComponent implements OnInit {
117
143
*`NgxUiLoaderService.getStatus()` Returns an object including `waitingForeground` and `waitingBackground` properties.
118
144
*`NgxUiLoaderService.stopAll()` Stops all foreground and background loaders.
|`overlayColor`|*string*| optional |`rgba(40,40,40,.8)`| Overlay background color |
194
225
|`threshold`|*number*| optional |`500`| The time a loader must be showed at least before it can be stopped. It must be >= 1 millisecond. **NOTE: `threshold` is only configured via forRoot() method.**||
195
226
196
-
## Automatically show loader for router events
227
+
228
+
<aname="router_events"></a>
229
+
230
+
## Automatically show loader for router events <aname="router_events"></a>
197
231
198
232
If you want the loader to start automatically for navigating between your app routes:
199
233
@@ -230,7 +264,14 @@ NOTE: And in you root app template, do not forget to include `ngx-ui-loader` com
230
264
<ngx-ui-loader></ngx-ui-loader>
231
265
```
232
266
233
-
## Changelog
267
+
268
+
<aname="changelog"></a>
269
+
270
+
## Changelog <aname="changelog"></a>
271
+
272
+
### v.1.1.2
273
+
* Add more spinner types (total 22 spinners)
274
+
* Bugs fixed: Background spinner (if active) should be showed after the foreground spinner is closed out.
234
275
235
276
### v.1.1.1
236
277
* Bugs fixed
@@ -264,13 +305,19 @@ NOTE: And in you root app template, do not forget to include `ngx-ui-loader` com
264
305
* Be able to change color and size of spinners and progress bar
Copy file name to clipboardExpand all lines: projects/ngx-ui-loader/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "ngx-ui-loader",
3
3
"description": "An all-in-one and fully customizable loader/spinner for Angular 5+ (5+ and 6+ are tested) applications. It supports foreground, background spinner/loader and indicative progress bar.",
0 commit comments