AngularLoader interface

Used to load an Angular component from the context of a React component. Please see the AngularComponent for a proper example.

Signature

  1. export interface AngularLoader

Import

  1. import { AngularLoader } from '@grafana/runtime';

Methods

MethodDescription
load(elem, scopeProps, template)

load method

Signature

  1. load(elem: any, scopeProps: any, template: string): AngularComponent;

Parameters

ParameterTypeDescription
elemanythe element that the Angular component will be loaded into.
scopePropsanyvalues that will be accessed via the Angular scope.
templatestringtemplate used by the Angular component.

Returns:

AngularComponent