🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
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

HTTP Overlay interceptor to show/hide overlay/spinner

9.0.0
latest
npm
Version published
Weekly downloads
13
116.67%
Maintainers
1
Weekly downloads
 
Created
Source

a4-http-overlay-interceptor

Angular 7 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
    }
);

Keywords

angular

FAQs

Package last updated on 08 Feb 2020

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