Skip to content

Commit

Permalink
Use Angular run method to get access to Private service
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed Nov 24, 2017
1 parent f17c784 commit 160e47d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/public/visualize/loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import angular from 'angular';
import uiRoutes from 'ui/routes';
import { uiModules } from 'ui/modules';
import 'ui/visualize';
import visTemplate from './loader_template.html';

Expand Down Expand Up @@ -110,7 +110,7 @@ const VisualizeLoaderProvider = ($compile, $rootScope, savedVisualizations) => {
// (that is also returned by getVisualizeLoader) once the the visualizeLoader
// could be created.
const visualizeLoaderPromise = new Promise((resolve) => {
uiRoutes.addSetupWork((Private) => {
uiModules.get('kibana').run((Private) => {
const visualizeLoader = Private(VisualizeLoaderProvider);
resolve(visualizeLoader);
});
Expand Down

0 comments on commit 160e47d

Please sign in to comment.