Import echarts for the lightning module more efficiently

This commit is contained in:
softsimon 2022-07-08 18:54:44 +02:00
parent 73c4a934ce
commit c6d56f06b2
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
2 changed files with 5 additions and 4 deletions

View File

@ -57,6 +57,9 @@ import { CommonModule } from '@angular/common';
NgxEchartsModule.forRoot({
echarts: () => import('echarts')
})
],
exports: [
NgxEchartsModule,
]
})
export class GraphsModule { }

View File

@ -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,