grafana/public/app/angular/AngularRoot.tsx
Torkel Ödegaard c96c92d712
Angular: Isolate angular more (#41440)
* 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
2021-11-10 11:05:36 +01:00

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';