import { NgModule , ValueProvider } from '@angular/core' ; import { CommonModule } from '@angular/common' ; import { PivotViewComponent } from './pivotview.component' ; import { PivotViewModule } from './pivotview.module' ; import { GroupingBar , FieldList , CalculatedField , ConditionalFormatting , VirtualScroll , DrillThrough , Toolbar , PivotChart , PDFExport , ExcelExport , NumberFormatting , Grouping } from '@syncfusion/ej2-pivotview' ; export const GroupingBarService = { provide : 'PivotViewGroupingBar' , useValue : GroupingBar } ; export const FieldListService = { provide : 'PivotViewFieldList' , useValue : FieldList } ; export const CalculatedFieldService = { provide : 'PivotViewCalculatedField' , useValue : CalculatedField } ; export const ConditionalFormattingService = { provide : 'PivotViewConditionalFormatting' , useValue : ConditionalFormatting } ; export const VirtualScrollService = { provide : 'PivotViewVirtualScroll' , useValue : VirtualScroll } ; export const DrillThroughService = { provide : 'PivotViewDrillThrough' , useValue : DrillThrough } ; export const ToolbarService = { provide : 'PivotViewToolbar' , useValue : Toolbar } ; export const PivotChartService = { provide : 'PivotViewPivotChart' , useValue : PivotChart } ; export const PDFExportService = { provide : 'PivotViewPDFExport' , useValue : PDFExport } ; export const ExcelExportService = { provide : 'PivotViewExcelExport' , useValue : ExcelExport } ; export const NumberFormattingService = { provide : 'PivotViewNumberFormatting' , useValue : NumberFormatting } ; export const GroupingService = { provide : 'PivotViewGrouping' , useValue : Grouping } ; /**
 * NgModule definition for the PivotView component with providers.
 */ @ NgModule ( { imports : [ CommonModule , PivotViewModule ] , exports : [ PivotViewModule ] , providers : [ GroupingBarService , FieldListService , CalculatedFieldService , ConditionalFormattingService , VirtualScrollService , DrillThroughService , ToolbarService , PivotChartService , PDFExportService , ExcelExportService , NumberFormattingService , GroupingService ] } ) export class PivotViewAllModule { }