dependencies dependencies cluster_DeliveryModeModule cluster_DeliveryModeModule_declarations cluster_DeliveryModeModule_exports cluster_DeliveryModeModule_imports DeliveryModeComponent DeliveryModeComponent DeliveryModeModule DeliveryModeModule DeliveryModeComponent->DeliveryModeModule DeliveryModeComponent DeliveryModeComponent DeliveryModeModule->DeliveryModeComponent I18nModule I18nModule I18nModule->DeliveryModeModule SpinnerModule SpinnerModule SpinnerModule->DeliveryModeModule

File

feature-libs/checkout/components/components/delivery-mode/delivery-mode.module.ts

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CmsConfig, I18nModule, provideDefaultConfig } from '@spartacus/core';
import { SpinnerModule } from '@spartacus/storefront';
import { CartNotEmptyGuard } from '../../guards/cart-not-empty.guard';
import { CheckoutAuthGuard } from '../../guards/checkout-auth.guard';
import { DeliveryModeComponent } from './delivery-mode.component';

@NgModule({
  imports: [CommonModule, ReactiveFormsModule, I18nModule, SpinnerModule],
  providers: [
    provideDefaultConfig(<CmsConfig>{
      cmsComponents: {
        CheckoutDeliveryMode: {
          component: DeliveryModeComponent,
          // TODO(#8880): Shouldn't we keep ShippingAddressSetGuard here?
          guards: [CheckoutAuthGuard, CartNotEmptyGuard],
        },
      },
    }),
  ],
  declarations: [DeliveryModeComponent],
  exports: [DeliveryModeComponent],
})
export class DeliveryModeModule {}

result-matching ""

    No results matching ""