Commit 4066c552 by Ryan McKinley Committed by GitHub

Fix: change angular loader paths (#17421)

parent f43af0e6
......@@ -2,9 +2,13 @@ import angular from 'angular';
import coreModule from 'app/core/core_module';
import _ from 'lodash';
import { AngularComponent, AngularLoader } from '@grafana/runtime';
import {
AngularComponent,
AngularLoader as AngularLoaderInterface,
setAngularLoader as setAngularLoaderInterface,
} from '@grafana/runtime';
export class AngularLoaderClass implements AngularLoader {
export class AngularLoader implements AngularLoaderInterface {
/** @ngInject */
constructor(private $compile: any, private $rootScope: any) {}
......@@ -34,4 +38,8 @@ export class AngularLoaderClass implements AngularLoader {
}
}
coreModule.service('angularLoader', AngularLoaderClass);
export function setAngularLoader(v: AngularLoader) {
setAngularLoaderInterface(v);
}
coreModule.service('angularLoader', AngularLoader);
......@@ -13,7 +13,7 @@ import appEvents from 'app/core/app_events';
import { TimeSrv, setTimeSrv } from 'app/features/dashboard/services/TimeSrv';
import { DatasourceSrv } from 'app/features/plugins/datasource_srv';
import { KeybindingSrv, setKeybindingSrv } from 'app/core/services/keybindingSrv';
import { AngularLoader, setAngularLoader } from '@grafana/runtime';
import { AngularLoader, setAngularLoader } from 'app/core/services/AngularLoader';
import { configureStore } from 'app/store/configureStore';
// Types
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment