src/app/app.module.ts
import { SessionStore } from './stores/session.store';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppMainTitleComponent } from './app-main-title';
import { AppNavigationComponent } from './app-navigation';
import { AppComponent } from './app.component';
import { appRoutes } from './app.routes';
import { SharedModule } from './shared.module';
import { CreatingSecretWordComponent, WhatIsSecretWordComponent } from './creating-secret-word';
import { ClipboardDirective, ClipboardService } from './directives/clipboard';
import { WindowTokenModule } from './directives/clipboard/window-token';
import { ErrorScreenComponent } from './error-screen';
import { LoaderModule } from './loader/loader.module';
import { LoginComponent } from './login/login.component';
import { NotFoundComponent } from './not-found';
import { PaymentsModule } from './payments/payments.module';
import { RecipientsModule } from './recipients/recipients.module';
import { SendingMoneyModule } from './sending-money/sending-money.module';
import { PaymentInFlightExplainComponent, SecretWordReminderComponent, SuccessScreenComponent } from './success-screen';
import { TimeoutModule } from './timeout';
import { AuthInterceptor } from './services/auth.interceptor';
import { HomeComponent } from './home';
import { AppState } from './stores/app-state.store';
import { DuplicatePaymentAlertComponent } from './duplicate-payment-alert/duplicate-payment-alert.component';
export function tokenGetter() {
return;
}
@NgModule({
bootstrap: [AppComponent],
imports: [
BrowserModule.withServerTransition({ appId: 'ng-cli-universal' }),
HttpClientModule,
WindowTokenModule,
SharedModule,
FormsModule,
TimeoutModule,
LoaderModule,
RecipientsModule,
SendingMoneyModule,
PaymentsModule,
appRoutes,
],
declarations: [
AppComponent,
LoginComponent,
HomeComponent,
AppMainTitleComponent,
AppNavigationComponent,
CreatingSecretWordComponent,
WhatIsSecretWordComponent,
SecretWordReminderComponent,
PaymentInFlightExplainComponent,
SuccessScreenComponent,
ErrorScreenComponent,
NotFoundComponent,
ClipboardDirective,
DuplicatePaymentAlertComponent
],
providers: [
{
provide: HTTP_INTERCEPTORS,
useClass: AuthInterceptor,
multi: true,
},
{ provide: 'ORIGIN_URL', useValue: location.origin },
ClipboardService,
SessionStore,
AppState,
],
})
export class AppModule {}