Add Login module.
This commit is contained in:
parent
ef4baeed88
commit
beac7c6eaa
24
src/login/login.module.ts
Normal file
24
src/login/login.module.ts
Normal 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 {};
|
Loading…
Reference in New Issue
Block a user