mirror of https://github.com/grafana/grafana
Angular: Move coreModule to app/angular and isolate angular usage more (#41433)
* moving coreModule to app/angular and isolating it more * fixed ts issuepull/41399/head^2
parent
8e778aa98f
commit
27f66a6df9
@ -1,4 +1,4 @@ |
||||
import coreModule from 'app/core/core_module'; |
||||
import coreModule from 'app/angular/core_module'; |
||||
import { provideTheme } from 'app/core/utils/ConfigProvider'; |
||||
|
||||
export function react2AngularDirective(name: string, component: any, options: any) { |
||||
@ -0,0 +1,8 @@ |
||||
import { getBackendSrv } from '@grafana/runtime'; |
||||
import { contextSrv } from 'app/core/core'; |
||||
import coreModule from './core_module'; |
||||
|
||||
export function registerComponents() { |
||||
coreModule.factory('backendSrv', () => getBackendSrv()); |
||||
coreModule.factory('contextSrv', () => contextSrv); |
||||
} |
||||
Loading…
Reference in new issue