mirror of
https://github.com/grafana/grafana.git
synced 2025-09-27 03:03:57 +08:00
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
import coreModule from 'app/core/core_module';
|
|
import { provideConfig } from 'app/core/utils/ConfigProvider';
|
|
|
|
export function react2AngularDirective(name: string, component: any, options: any) {
|
|
coreModule.directive(name, [
|
|
'reactDirective',
|
|
reactDirective => {
|
|
return reactDirective(provideConfig(component), options);
|
|
},
|
|
]);
|
|
}
|