Implement login mechanism.
This commit is contained in:
@ -1,15 +1,21 @@
|
||||
// vim: set tw=80 ts=2 sw=2 sts=2 :
|
||||
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||
|
||||
import { NgLoggerModule } from '@nsalaun/ng-logger';
|
||||
|
||||
import { LoginService } from './login.service';
|
||||
import { AuthInterceptor } from './authInterceptor';
|
||||
import { LoginService } from './login.service';
|
||||
import { LoginForm } from './loginForm.component';
|
||||
import { LoginModalComponent } from './loginModal.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
HttpClientModule,
|
||||
FormsModule,
|
||||
NgLoggerModule,
|
||||
],
|
||||
providers: [
|
||||
@ -19,6 +25,14 @@ import { AuthInterceptor } from './authInterceptor';
|
||||
useClass: AuthInterceptor,
|
||||
multi: true
|
||||
}
|
||||
],
|
||||
declarations: [
|
||||
LoginModalComponent,
|
||||
LoginForm,
|
||||
],
|
||||
entryComponents: [
|
||||
LoginModalComponent,
|
||||
LoginForm,
|
||||
]
|
||||
})
|
||||
export class LoginModule {};
|
||||
|
Reference in New Issue
Block a user