dependencies dependencies cluster_PaymentTypeModule cluster_PaymentTypeModule_exports cluster_PaymentTypeModule_declarations cluster_PaymentTypeModule_imports PaymentTypeComponent PaymentTypeComponent PaymentTypeModule PaymentTypeModule PaymentTypeComponent->PaymentTypeModule PaymentTypeComponent PaymentTypeComponent PaymentTypeModule->PaymentTypeComponent ConfigModule ConfigModule ConfigModule->PaymentTypeModule I18nModule I18nModule I18nModule->PaymentTypeModule SpinnerModule SpinnerModule SpinnerModule->PaymentTypeModule

File

feature-libs/checkout/components/components/payment-type/payment-type.module.ts

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { CmsConfig, ConfigModule, I18nModule } from '@spartacus/core';
import { SpinnerModule, CartValidationGuard } from '@spartacus/storefront';
import { CartNotEmptyGuard } from '../../guards/cart-not-empty.guard';
import { CheckoutAuthGuard } from '../../guards/checkout-auth.guard';
import { PaymentTypeComponent } from './payment-type.component';

@NgModule({
  imports: [
    CommonModule,
    I18nModule,
    SpinnerModule,
    ConfigModule.withConfig(<CmsConfig>{
      cmsComponents: {
        CheckoutPaymentType: {
          component: PaymentTypeComponent,
          guards: [CheckoutAuthGuard, CartNotEmptyGuard, CartValidationGuard],
        },
      },
    }),
  ],
  declarations: [PaymentTypeComponent],
  exports: [PaymentTypeComponent],
})
export class PaymentTypeModule {}

result-matching ""

    No results matching ""