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({
|
||||
echarts: () => import('echarts')
|
||||
})
|
||||
],
|
||||
exports: [
|
||||
NgxEchartsModule,
|
||||
]
|
||||
})
|
||||
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 { LightningStatisticsChartComponent } from './statistics-chart/lightning-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({
|
||||
declarations: [
|
||||
LightningDashboardComponent,
|
||||
@ -35,9 +35,7 @@ import { NgxEchartsModule } from 'ngx-echarts';
|
||||
SharedModule,
|
||||
RouterModule,
|
||||
LightningRoutingModule,
|
||||
NgxEchartsModule.forRoot({
|
||||
echarts: () => import('echarts')
|
||||
})
|
||||
GraphsModule,
|
||||
],
|
||||
providers: [
|
||||
LightningApiService,
|
||||
|
Loading…
x
Reference in New Issue
Block a user