Skip to content

Instantly share code, notes, and snippets.

@rpinna
Last active Sep 22, 2018
Embed
What would you like to do?
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