Socket
Book a DemoInstallSign in
Socket

@ngodings/ngx-interceptor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngodings/ngx-interceptor

Angular HTTP Interceptor for Error Handling & Header Authorization

latest
Source
npmnpm
Version
15.0.9
Version published
Maintainers
1
Created
Source

@ngodings/ngx-interceptor

Angular HTTP Interceptor for Error Handling & Header Authorization

Demo - Angular v15

https://npm.ngodings.com/packages/ngx-interceptor

Support Me

If you like this package I will be happy that you support me on Buy me a coffee :)
Buy me coffee: https://www.buymeacoffee.com/alidihaw
Indonesia People: https://sociabuzz.com/dihaw

Getting Started

Installing and Importing

Install the package by command:

 npm install @ngodings/ngx-interceptor --save

Import the module

@NgModule({
    imports: [...],
    declarations: [...],
    providers: [
      ...
      { provide: HTTP_INTERCEPTORS, useClass: NgxHttpHeaderInterceptor, multi: true },
      { provide: HTTP_INTERCEPTORS, useClass: NgxHttpErrorInterceptor, multi: true },
    ]
})
export class AppModule {}

Save token to local storage or session storage with key token

Development

Prepare your environment

  • Install Node.js and NPM
  • Install local dev dependencies: npm install while current directory is this repo

License

MIT @ Ali Abdul Wahid

Keywords

angular

FAQs

Package last updated on 27 Dec 2022

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