Skip to content

Commit

Permalink
Fix Angular 10 generic ModuleWithProviders depreciation (#254)
Browse files Browse the repository at this point in the history
Not tested but should resolve #250
See this for more info https://angular.io/guide/migration-module-with-providers
  • Loading branch information
olicooper committed Aug 6, 2020
1 parent b5ab51a commit 33ee364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-echarts/src/lib/ngx-echarts.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { NgxEchartsDirective, NgxEchartsConfig, NGX_ECHARTS_CONFIG } from './ngx
exports: [NgxEchartsDirective],
})
export class NgxEchartsModule {
static forRoot(config: NgxEchartsConfig): ModuleWithProviders {
static forRoot(config: NgxEchartsConfig): ModuleWithProviders<NgxEchartsModule> {
return {
ngModule: NgxEchartsModule,
providers: [{ provide: NGX_ECHARTS_CONFIG, useValue: config }],
Expand Down

0 comments on commit 33ee364

Please sign in to comment.