Skip to content

v0.5.4

Compare
Choose a tag to compare
@gevgeny gevgeny released this 12 Feb 19:54
· 4 commits to master since this release
  • Add angular-cli support
  • Bump dependencies versions
  • Update documentation and live demos

Breaking Changes

  • Now main highcharts module (highchart, highstock or highmaps) should be specified manually during app init. It helped to get rid of config changes in webpack environment.
@NgModule({
    imports: [
      BrowserModule, 
-     ChartModule
+     ChartModule.forRoot(require('highcharts'))
    ],
    declarations: [App],
    bootstrap: [App]
})
  • Highcharts Modules adding was simplified and also moved to app init.
- const Highcharts = require('highcharts');
- const Highcharts-3d = require('highcharts/highcharts-3d');
- Highcharts-3d (Highcharts)

@NgModule({
    imports: [
      BrowserModule, 
-     ChartModule
+     ChartModule.forRoot(
+       require('highcharts'),
+       require('highcharts/highcharts-3d')
+     )
    ],
    declarations: [App],
    bootstrap: [App]
})