Skip to content

Commit

Permalink
Remove manual injections
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Nov 20, 2016
1 parent 4a9eb35 commit e5e6d21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/app/visualizations/chart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const ColorBox = {
export default function (ngModule) {
ngModule.component('colorBox', ColorBox);
ngModule.directive('chartRenderer', ChartRenderer);
ngModule.directive('chartEditor', ['clientConfig', ChartEditor]);
ngModule.directive('chartEditor', ChartEditor);
ngModule.config((VisualizationProvider) => {
const renderTemplate = '<chart-renderer options="visualization.options" query-result="queryResult"></chart-renderer>';
const editTemplate = '<chart-editor options="visualization.options" query-result="queryResult"></chart-editor>';
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/visualizations/chart/plotly.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,5 +475,5 @@ const CustomPlotlyChart = (clientConfig) => {
export default function (ngModule) {
ngModule.constant('ColorPalette', ColorPalette);
ngModule.directive('plotlyChart', PlotlyChart);
ngModule.directive('customPlotlyChart', ['clientConfig', CustomPlotlyChart]);
ngModule.directive('customPlotlyChart', CustomPlotlyChart);
}

0 comments on commit e5e6d21

Please sign in to comment.