Skip to content

Instantly share code, notes, and snippets.

@wKoza
Last active August 10, 2017 09:16
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/fb00f3ee64a5e3e7b026f92430e42f06 to your computer and use it in GitHub Desktop.
Save wKoza/fb00f3ee64a5e3e7b026f92430e42f06 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,
}
],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment