a4-http-overlay-interceptor
TypeScript icon, indicating that this package has built-in type declarations

9.0.0 • Public • Published

a4-http-overlay-interceptor

Angular 7 Http Overlay Interceptor

How-To

Install

npm install a4-http-overlay-interceptor

app.module.ts

  1. Add HttpOverlayModule to imports of the app.module.ts.
 
...
import { HttpOverlayModule } from 'a4-http-overlay-interceptor';
...
 
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    ...,
    HttpOverlayModule,
    ...
  ],
  ...
})

Inject the service

constructor(private httpOverlayServiceHttpOverlayService) { }

Show/Hide the Spinner

this.httpOverlayService.setOverlayCallBacks(
    () => {
        ... // show spinner code
    }, () => {
        ... // hide spinner code
    }
);

Package Sidebar

Install

npm i a4-http-overlay-interceptor

Weekly Downloads

3

Version

9.0.0

License

MIT

Unpacked Size

101 kB

Total Files

26

Last publish

Collaborators

  • cccheng