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 {}