Skip to content

Commit

Permalink
feat: Expose ApexCharts on window
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed Apr 5, 2019
1 parent fa5edb8 commit 1c350f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/apex-chart/apex-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const config = (
}
return series ? { ...options, chart, series } : { ...options, chart };
};

if (window) {
const win = window as any;
win.ApexCharts = ApexCharts;
}

@Component({
tag: 'apex-chart',
styleUrl: 'apex-chart.css'
Expand Down

0 comments on commit 1c350f3

Please sign in to comment.