Import echarts for the lightning module more efficiently
This commit is contained in:
parent
73c4a934ce
commit
c6d56f06b2
@ -57,6 +57,9 @@ import { CommonModule } from '@angular/common';
|
|||||||
NgxEchartsModule.forRoot({
|
NgxEchartsModule.forRoot({
|
||||||
echarts: () => import('echarts')
|
echarts: () => import('echarts')
|
||||||
})
|
})
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
NgxEchartsModule,
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class GraphsModule { }
|
export class GraphsModule { }
|
||||||
|
@ -15,7 +15,7 @@ import { ChannelBoxComponent } from './channel/channel-box/channel-box.component
|
|||||||
import { ClosingTypeComponent } from './channel/closing-type/closing-type.component';
|
import { ClosingTypeComponent } from './channel/closing-type/closing-type.component';
|
||||||
import { LightningStatisticsChartComponent } from './statistics-chart/lightning-statistics-chart.component';
|
import { LightningStatisticsChartComponent } from './statistics-chart/lightning-statistics-chart.component';
|
||||||
import { NodeStatisticsChartComponent } from './node-statistics-chart/node-statistics-chart.component';
|
import { NodeStatisticsChartComponent } from './node-statistics-chart/node-statistics-chart.component';
|
||||||
import { NgxEchartsModule } from 'ngx-echarts';
|
import { GraphsModule } from '../graphs/graphs.module';
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
LightningDashboardComponent,
|
LightningDashboardComponent,
|
||||||
@ -35,9 +35,7 @@ import { NgxEchartsModule } from 'ngx-echarts';
|
|||||||
SharedModule,
|
SharedModule,
|
||||||
RouterModule,
|
RouterModule,
|
||||||
LightningRoutingModule,
|
LightningRoutingModule,
|
||||||
NgxEchartsModule.forRoot({
|
GraphsModule,
|
||||||
echarts: () => import('echarts')
|
|
||||||
})
|
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
LightningApiService,
|
LightningApiService,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user