dependencies dependencies cluster_ForgotPasswordModule cluster_ForgotPasswordModule_declarations cluster_ForgotPasswordModule_imports ForgotPasswordComponent ForgotPasswordComponent ForgotPasswordModule ForgotPasswordModule ForgotPasswordComponent->ForgotPasswordModule FormErrorsModule FormErrorsModule FormErrorsModule->ForgotPasswordModule I18nModule I18nModule I18nModule->ForgotPasswordModule SpinnerModule SpinnerModule SpinnerModule->ForgotPasswordModule UrlModule UrlModule UrlModule->ForgotPasswordModule

File

feature-libs/user/profile/components/forgot-password/forgot-password.module.ts

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import {
  AuthConfigService,
  CmsConfig,
  GlobalMessageService,
  I18nModule,
  NotAuthGuard,
  provideDefaultConfig,
  RoutingService,
  UrlModule,
} from '@spartacus/core';
import { FormErrorsModule, SpinnerModule } from '@spartacus/storefront';
import { UserPasswordFacade } from '@spartacus/user/profile/root';
import { ForgotPasswordComponentService } from './forgot-password-component.service';
import { ForgotPasswordComponent } from './forgot-password.component';

@NgModule({
  imports: [
    CommonModule,
    ReactiveFormsModule,
    RouterModule,
    UrlModule,
    I18nModule,
    FormErrorsModule,
    SpinnerModule,
  ],
  providers: [
    provideDefaultConfig(<CmsConfig>{
      cmsComponents: {
        ForgotPasswordComponent: {
          component: ForgotPasswordComponent,
          guards: [NotAuthGuard],
          providers: [
            {
              provide: ForgotPasswordComponentService,
              useClass: ForgotPasswordComponentService,
              deps: [
                UserPasswordFacade,
                RoutingService,
                AuthConfigService,
                GlobalMessageService,
              ],
            },
          ],
        },
      },
    }),
  ],
  declarations: [ForgotPasswordComponent],
})
export class ForgotPasswordModule {}

result-matching ""

    No results matching ""