Skip to content

Instantly share code, notes, and snippets.

@rpinna
Last active September 22, 2018 01:07
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 rpinna/887207f380df68c9873caa18fea7ca12 to your computer and use it in GitHub Desktop.
Save rpinna/887207f380df68c9873caa18fea7ca12 to your computer and use it in GitHub Desktop.
Angular AppModule demonstrating usage of HTTP_INTERCEPTORS providers
@NgModule({
imports: [
BrowserModule,
...
],
declarations: [ AppComponent ],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: LoggingHttpInterceptor, multi: true }
],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment