projects/storefrontlib/shared/components/table/table.module.ts
The TableModule provides a table component that is driven by (responsible) configuration.
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { provideConfig } from '@spartacus/core';
import { OutletModule } from '../../../cms-structure/outlet/outlet.module';
import { defaultTableConfig } from './config/default-table.config';
import { TableDataCellModule } from './table-data-cell/table-data-cell.module';
import { TableHeaderCellModule } from './table-header-cell/table-header-cell.module';
import { TableComponent } from './table.component';
/**
* The TableModule provides a table component that is driven by (responsible) configuration.
*/
@NgModule({
imports: [
CommonModule,
OutletModule,
TableHeaderCellModule,
TableDataCellModule,
],
declarations: [TableComponent],
exports: [TableComponent],
providers: [provideConfig(defaultTableConfig)],
})
export class TableModule {}