mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 16:27:02 -06:00
Fix: change angular loader paths (#17421)
This commit is contained in:
parent
f43af0e644
commit
4066c55298
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user