Skip to content

Commit d6de6c3

Browse files
committed
README
1 parent 1e179c1 commit d6de6c3

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.MD

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,33 @@ and shows a spinner during pending requests.
1717
## Usage
1818

1919
In order to have this module listening to your http requests, replace all your ``http`` uses by [http: HttpInterceptorService](src/app/http-interceptor.service.ts).
20+
Then from your Angular `AppModule`:
21+
22+
```typescript
23+
import { BrowserModule } from '@angular/platform-browser';
24+
import { NgModule } from '@angular/core';
25+
[...]
26+
import { AppComponent } from './app.component';
27+
import { NgHttpLoaderModule } from 'ng-http-loader/ng-http-loader.module';
28+
29+
@NgModule({
30+
declarations: [
31+
AppComponent
32+
],
33+
imports: [
34+
BrowserModule,
35+
NgHttpLoaderModule,
36+
],
37+
providers: [],
38+
bootstrap: [AppComponent]
39+
})
40+
export class AppModule { }
41+
```
2042

43+
In your app.component.html, add :
44+
```xml
45+
<spinner></spinner>
46+
```
2147
## Requirements
2248

2349
It's compatible with Angular 4+.

0 commit comments

Comments
 (0)