mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
c96c92d712
* Getting close * Restore angular app boot at startup * Moving angular annotations dependencies to app/angular or old graph * Remove redundant setLinkSrv call * Fixing graph test * Minor refactor based on review feedback * Create in get function
16 lines
320 B
TypeScript
16 lines
320 B
TypeScript
import React from 'react';
|
|
|
|
export const AngularRoot = React.forwardRef<HTMLDivElement, {}>((props, ref) => {
|
|
return (
|
|
<div
|
|
id="ngRoot"
|
|
ref={ref}
|
|
dangerouslySetInnerHTML={{
|
|
__html: '<grafana-app ng-cloak></grafana-app>',
|
|
}}
|
|
/>
|
|
);
|
|
});
|
|
|
|
AngularRoot.displayName = 'AngularRoot';
|