From beac7c6eaaa1ae17e1e6c875c79976ac24403a26 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 1 Aug 2017 23:52:34 +0200 Subject: [PATCH] Add Login module. --- src/login/login.module.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/login/login.module.ts diff --git a/src/login/login.module.ts b/src/login/login.module.ts new file mode 100644 index 0000000..d84e07c --- /dev/null +++ b/src/login/login.module.ts @@ -0,0 +1,24 @@ +// vim: set tw=80 ts=2 sw=2 sts=2 : + +import { NgModule } from '@angular/core'; +import { HTTP_INTERCEPTORS } from '@angular/common/http'; + +import { NgLoggerModule } from '@nsalaun/ng-logger'; + +import { LoginService } from './login.service'; +import { AuthInterceptor } from './authInterceptor'; + +@NgModule({ + imports: [ + NgLoggerModule, + ], + providers: [ + LoginService, + { + provide: HTTP_INTERCEPTORS, + useClass: AuthInterceptor, + multi: true + } + ] +}) +export class LoginModule {};