You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

a4-http-overlay-interceptor

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a4-http-overlay-interceptor

Angular 4 Http Overlay Interceptor

0.0.2
npmnpm
Version published
Weekly downloads
34
161.54%
Maintainers
1
Weekly downloads
 
Created
Source

a4-http-overlay-interceptor

Angular 4 Http Overlay Interceptor

How-To

Install

npm install a4-http-overlay-interceptor

app.module.ts

  • 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 httpOverlayService: HttpOverlayService) { }

Show/Hide the Spinner

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

FAQs

Package last updated on 16 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts