Fix: change angular loader paths (#17421)

This commit is contained in:
Ryan McKinley 2019-06-04 09:19:55 +02:00 committed by GitHub
parent f43af0e644
commit 4066c55298
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -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);

View File

@ -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