Add Login module.

This commit is contained in:
Alexis Lahouze 2017-08-01 23:52:34 +02:00
parent ef4baeed88
commit beac7c6eaa
1 changed files with 24 additions and 0 deletions

24
src/login/login.module.ts Normal file
View File

@ -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 {};