[Suggest] Documentation update
See original GitHub issueHi, Thank you for the great library. Just for people that using AOT compilation (typically people that use angular-cli), you have to add the following code to your AppModule in order to work:
In your AppModule:
import {HighchartsStatic} from 'angular2-highcharts/dist/HighchartsService';
import {ChartModule} from "angular2-highcharts";
export function highchartsFactory() {
return require('highcharts');
}
@NgModule({
providers:[
...
{
provide: HighchartsStatic,
useFactory: highchartsFactory
},
....
]}
In the module where you use the chart directive:
@NgModule({
imports: [
ChartModule
],
]}
You could also declare as a singleton (ShareModule)
Thank you !
Issue Analytics
- State:
- Created 7 years ago
- Reactions:19
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Suggest edits in Google Docs - Computer
Suggest changes to a file. On your computer, open a document at docs.google.com. Select the text you want to change. A button appears...
Read more >8 Tips for Keeping Your Process Documentation Up to Date
How often do your update your docs? Have your policies and procedures changed but your documents haven't been updated? Do your help guides ......
Read more >Suggesting documentation edits
Follow these steps to suggest edits on a documentation page. Make sure you are on the page for which you want to suggest...
Read more >Automatic Detection and Update Suggestion for Outdated API ...
In this paper, we propose a method for automatically updating outdated API names in API documentation. Our insight is that API updates in ......
Read more >Quickstart guide | Suggested documentation
Lastly, when you've deployed a new product update, you can write a changelog post. This is like a a blog post where you...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

How would you load Highcharts modules with this solution? Modules like highcharts/modules/solid-gauge.
Edit: This seems to work for exporting, and for solid gauge:
(Added highcharts-more to make solid gauge work)
Yea, would be great. But
HighchartsServicesupposed to be private part of the lib. Are there any simplier approach to achieve this ? I would change something in the lib if it is necessary