Instantly share code, notes, and snippets.

@wKoza /app.module.ts Secret
Created Aug 10, 2017

Embed
What would you like to do?
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