-
-
Save rpinna/887207f380df68c9873caa18fea7ca12 to your computer and use it in GitHub Desktop.
Angular AppModule demonstrating usage of HTTP_INTERCEPTORS providers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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