Skip to content

Instantly share code, notes, and snippets.

@wKoza
Created August 10, 2017 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wKoza/7cdbb1a8c5f726227e3f191cb7fe135b to your computer and use it in GitHub Desktop.
Save wKoza/7cdbb1a8c5f726227e3f191cb7fe135b to your computer and use it in GitHub Desktop.
import {NgModule} from '@angular/core';
import {HTTP_INTERCEPTORS} from '@angular/common/http';
@NgModule({
providers: [
AuthInterceptor,
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true,
},
{
provide: HTTP_INTERCEPTORS,
useClass: LoggerInterceptor,
multi: true,
}
],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment