Created
June 10, 2017 07:59
-
-
Save rhyttr/76b393987b1a700d700810a9a1776036 to your computer and use it in GitHub Desktop.
angular2-highcharts require error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChartModule } from 'angular2-highcharts'; | |
import { HighchartsStatic } from 'angular2-highcharts/dist/HighchartsService'; | |
import * as highcharts from 'highcharts'; | |
export function highchartsFactory() { | |
return highcharts; | |
} | |
imports: [ | |
ChartModule | |
], | |
providers: [ | |
{ | |
provide: HighchartsStatic, | |
useFactory: highchartsFactory | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment